Fwknop: Fix setting getting overwritten 2670/head
authorJonathan Bennett <jbennett@incomsystems.biz>
Sun, 8 May 2016 18:35:46 +0000 (13:35 -0500)
committerJonathan Bennett <jbennett@incomsystems.biz>
Sun, 8 May 2016 18:35:46 +0000 (13:35 -0500)
A typo in the init file was causing a certain setting to be overwritten on every daemon start.
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
net/fwknop/files/fwknopd.init

index 4c86493de98cfdc67293ff8f6aef3ab140dbd060..94c426c4780ae78587f51c290c1237a802e79a5e 100644 (file)
@@ -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