0
0
mirror of https://github.com/openwrt/luci.git synced 2025-10-10 06:51:17 +00:00
Files
Oldřich Jedlička 6059f6a1a6 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>
2020-10-31 09:41:19 +01:00

15 lines
422 B
Bash

#!/bin/sh
#-- Copyright 2015 Jonathan Bennett <jbennett@incomsystems.biz>
#-- Licensed to the public under the GNU General Public License v2.
. /lib/functions/network.sh
# Clean-up - keytype/hkeytype is unnecessary now
if uci -q show fwknopd | grep \\.h\\?keytype > /dev/null; then
for keytype in $(uci -q show fwknopd | grep \\.h\\?keytype= | cut -d= -f1); do
uci delete $keytype
done
uci commit fwknopd
fi
exit 0