diff options
Diffstat (limited to 'applications/luci-app-fwknopd')
-rw-r--r-- | applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd | 12 |
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 00d721e067..5fed1889da 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 |