summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-fwknopd/root/etc
diff options
context:
space:
mode:
authorOldřich Jedlička <oldium.pro@gmail.com>2020-10-15 18:59:19 +0200
committerOldřich Jedlička <oldium.pro@gmail.com>2020-10-31 09:41:19 +0100
commit6059f6a1a697f7b1924505183757b4e6d2f8985b (patch)
tree69a30fe629b359210702ed15cc473d4d48929b4f /applications/luci-app-fwknopd/root/etc
parentc3d9d2aeab4ad13fd6c2957c9118c1e5619f1767 (diff)
luci-app-fwknopd: Remove defaults.
Remove setting values in `uci-defaults`, which can be changed from LuCI directly: * Keys can be generated from LuCI, so it is not necessary to set them. * ENABLE_IPT_FORWARDING and ENABLE_NAT_DNS options can be set in LuCI. Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
Diffstat (limited to 'applications/luci-app-fwknopd/root/etc')
-rw-r--r--applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd12
1 files changed, 0 insertions, 12 deletions
diff --git a/applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd b/applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd
index 00d721e06..5fed1889d 100644
--- a/applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd
+++ b/applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd
@@ -11,16 +11,4 @@ if uci -q show fwknopd | grep \\.h\\?keytype > /dev/null; then
uci commit fwknopd
fi
-# Generate valid keys
-if [ "$(uci -q get fwknopd.@access[0].KEY)" = "CHANGEME" ]; then
- uci delete fwknopd.@access[0].KEY
- uci delete fwknopd.@access[0].HMAC_KEY
- uci set fwknopd.@access[0].KEY_BASE64=`fwknopd --key-gen | awk '/^KEY/ {print $2;}'`
- uci set fwknopd.@access[0].HMAC_KEY_BASE64=`fwknopd --key-gen | awk '/^HMAC/ {print $2;}'`
- uci set fwknopd.@config[0].ENABLE_IPT_FORWARDING='y'
- uci set fwknopd.@config[0].ENABLE_NAT_DNS='y'
-
- uci commit fwknopd
-fi
-
exit 0