Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
# list of contributors, see the file 'CREDITS'.
#
. /lib/functions.sh
# list of contributors, see the file 'CREDITS'.
#
. /lib/functions.sh
FWKNOPD_BIN=/usr/sbin/fwknopd
FWKNOPD_BIN=/usr/sbin/fwknopd
gen_confs()
{
[ -f /tmp/access.conf.tmp ] && rm /tmp/access.conf.tmp
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"
config_cb() {
local type="$1"
local name="$2"