From: Jonathan Bennett Date: Wed, 10 Jun 2015 21:58:56 +0000 (-0500) Subject: Fwknopd: Set capture interface to wan by default X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a624a63150a88d957fe57428d6026cb258255700;p=openwrt-packages.git Fwknopd: Set capture interface to wan by default Signed-off-by: Jonathan Bennett --- diff --git a/net/fwknop/files/fwknopd.init b/net/fwknop/files/fwknopd.init index f8cda50ae..4c86493de 100644 --- a/net/fwknop/files/fwknopd.init +++ b/net/fwknop/files/fwknopd.init @@ -5,7 +5,7 @@ # list of contributors, see the file 'CREDITS'. # . /lib/functions.sh -START=60 +START=95 FWKNOPD_BIN=/usr/sbin/fwknopd @@ -36,6 +36,13 @@ reload() gen_confs() { [ -f /tmp/access.conf.tmp ] && rm /tmp/access.conf.tmp + if [`uci get fwknopd.@access[0].PCAP_INTF` = ""] + then + . /lib/functions/network.sh + network_get_physdev device wan + uci set fwknopd.@config[0].PCAP_INTF="$device" + uci commit + fi config_cb() { local type="$1" local name="$2"