1
0
Çatalla 0
şunun yansıması https://git.openwrt.org/project/luci.git synced 2025-01-18 23:45:02 +00:00
luci/applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd
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

14 satır
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