From: Jonathan Bennett Date: Sun, 8 May 2016 18:35:46 +0000 (-0500) Subject: Fwknop: Fix setting getting overwritten X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a105a0ce53931eae5c195f1bd1404225f3c8e921;p=feed%2Fpackages.git Fwknop: Fix setting getting overwritten A typo in the init file was causing a certain setting to be overwritten on every daemon start. Signed-off-by: Jonathan Bennett --- diff --git a/net/fwknop/files/fwknopd.init b/net/fwknop/files/fwknopd.init index 4c86493de9..94c426c478 100644 --- a/net/fwknop/files/fwknopd.init +++ b/net/fwknop/files/fwknopd.init @@ -36,7 +36,7 @@ reload() gen_confs() { [ -f /tmp/access.conf.tmp ] && rm /tmp/access.conf.tmp - if [`uci get fwknopd.@access[0].PCAP_INTF` = ""] + if [ -z "$( uci get fwknopd.@config[0].PCAP_INTF )" ] then . /lib/functions/network.sh network_get_physdev device wan