mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 23:34:34 +04:00
luci-app-fwknop: Adds a check to not overwrite user configured keys
Signed-off-by: Jonathan Bennett <JBennett@Incomsystems.biz>
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
#-- Licensed to the public under the GNU General Public License v2.
|
#-- Licensed to the public under the GNU General Public License v2.
|
||||||
. /lib/functions/network.sh
|
. /lib/functions/network.sh
|
||||||
|
|
||||||
|
[ "$(uci -q get fwknopd.@access[0].KEY)" != "CHANGEME" ] && exit 0
|
||||||
uci batch <<EOF
|
uci batch <<EOF
|
||||||
add ucitrack fwknopd
|
add ucitrack fwknopd
|
||||||
set ucitrack.@fwknopd[-1].init=fwknopd
|
set ucitrack.@fwknopd[-1].init=fwknopd
|
||||||
|
|||||||
Reference in New Issue
Block a user