summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-fwknopd/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-fwknopd/root')
-rw-r--r--applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd9
1 files changed, 2 insertions, 7 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 9e5057e701..f81c941e83 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
@@ -4,16 +4,11 @@
. /lib/functions/network.sh
[ "$(uci -q get fwknopd.@access[0].KEY)" != "CHANGEME" ] && exit 0
-uci batch <<EOF
- add ucitrack fwknopd
- set ucitrack.@fwknopd[-1].init=fwknopd
- commit ucitrack
-EOF
uci delete fwknopd.@access[0].KEY
uci delete fwknopd.@access[0].HMAC_KEY
-uci set fwknopd.@access[0].keytype='Base 64 key'
-uci set fwknopd.@access[0].hkeytype='Base 64 key'
+uci set fwknopd.@access[0].keytype='Base64 key'
+uci set fwknopd.@access[0].hkeytype='Base64 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'