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>
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