mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Merge pull request #1367 from oneru/for-15.05
[For-15.05] Fwknopd: Set capture interface to wan by default
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
# list of contributors, see the file 'CREDITS'.
|
# list of contributors, see the file 'CREDITS'.
|
||||||
#
|
#
|
||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
START=60
|
START=95
|
||||||
|
|
||||||
FWKNOPD_BIN=/usr/sbin/fwknopd
|
FWKNOPD_BIN=/usr/sbin/fwknopd
|
||||||
|
|
||||||
@@ -36,6 +36,13 @@ reload()
|
|||||||
gen_confs()
|
gen_confs()
|
||||||
{
|
{
|
||||||
[ -f /tmp/access.conf.tmp ] && rm /tmp/access.conf.tmp
|
[ -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() {
|
config_cb() {
|
||||||
local type="$1"
|
local type="$1"
|
||||||
local name="$2"
|
local name="$2"
|
||||||
|
|||||||
Reference in New Issue
Block a user