diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-07-05 00:52:10 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-07-05 00:52:10 +0000 |
commit | 53d65a1c4a68c4b00d0d8f65b7578042c03ff280 (patch) | |
tree | b9dcf1188512d6086aa51198822eeed332ffea51 /package/6to4 | |
parent | b18307a84fea45555033c38f8a4a73521e20f9c3 (diff) |
[package] 6in4, 6to4: prevent starting the tunnel if kmod-sit is not yet loaded (#9643)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27449 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/6to4')
-rw-r--r-- | package/6to4/Makefile | 2 | ||||
-rw-r--r-- | package/6to4/files/6to4.hotplug | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/package/6to4/Makefile b/package/6to4/Makefile index 77082a4a0..f4831a490 100644 --- a/package/6to4/Makefile +++ b/package/6to4/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=6to4 PKG_VERSION:=5 -PKG_RELEASE:=1 +PKG_RELEASE:=2 include $(INCLUDE_DIR)/package.mk diff --git a/package/6to4/files/6to4.hotplug b/package/6to4/files/6to4.hotplug index 037abd48f..1e3d26c41 100644 --- a/package/6to4/files/6to4.hotplug +++ b/package/6to4/files/6to4.hotplug @@ -20,6 +20,11 @@ if [ "$ACTION" = ifup ]; then local wanip=$(find_6to4_wanip "$wandev") [ -n "$wanip" ] && { + lsmod | grep -q ^sit || { + logger -t 6to4 "Tunneling driver not loaded yet, deferring action" + exit 0 + } + uci_set_state network "$cfg" ipaddr "$wanip" ( ifup "$cfg" )& } |