6in4: automatically determine wan interface in hotplug events

SVN-Revision: 22102
master
Jo-Philipp Wich 15 years ago
parent 1d45111aa5
commit 9b5e8c5913
  1. 2
      package/6in4/Makefile
  2. 2
      package/6in4/files/6in4.hotplug

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=6in4 PKG_NAME:=6in4
PKG_VERSION:=2 PKG_VERSION:=3
PKG_RELEASE:=1 PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk

@ -14,7 +14,7 @@ if [ "$ACTION" = ifup ]; then
[ "$proto" = 6in4 ] || return 0 [ "$proto" = 6in4 ] || return 0
local wandev local wandev
config_get wandev "$cfg" wan_device config_get wandev "$cfg" wan_device "$(find_6in4_wanif)"
[ "$wandev" = "$DEVICE" ] || return 0 [ "$wandev" = "$DEVICE" ] || return 0
local oldip local oldip

Loading…
Cancel
Save