lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit 9cb63f38e8c42c47987f474ea8d4244eec7b6ed6
parent 939f2e2dc5a4cc40d1fbccc0bc8ac567ecd74996
Author: Steven Barth <steven@midlink.org>
Date:   Fri, 12 Jun 2015 10:34:01 +0200

Merge pull request #1362 from oneru/fwknopd

Fwknopd: Set capture interface to wan by default
Diffstat:
Mnet/fwknop/files/fwknopd.init | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git 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"