summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-fwknopd/root/etc/uci-defaults/40_luci-fwknopd
blob: 5fed1889daec82369f5937a249680e26adc0433d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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