Browse Source

Merge pull request #1362 from oneru/fwknopd

Fwknopd: Set capture interface to wan by default
lilik-openwrt-22.03
Steven Barth 10 years ago
parent
commit
9cb63f38e8
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      net/fwknop/files/fwknopd.init

+ 8
- 1
net/fwknop/files/fwknopd.init View File

@ -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"


Loading…
Cancel
Save