aboutsummaryrefslogtreecommitdiffstats
path: root/package/6in4/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-05 00:52:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-05 00:52:10 +0000
commitfc026910611534dcc98204b9ea004afffe1d2ed5 (patch)
treeb9dcf1188512d6086aa51198822eeed332ffea51 /package/6in4/files
parent5e1e039c459374ac2908318a7bfdad5eac8b0bff (diff)
downloadupstream-fc026910611534dcc98204b9ea004afffe1d2ed5.tar.gz
upstream-fc026910611534dcc98204b9ea004afffe1d2ed5.tar.bz2
upstream-fc026910611534dcc98204b9ea004afffe1d2ed5.zip
[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/6in4/files')
-rw-r--r--package/6in4/files/6in4.hotplug5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/6in4/files/6in4.hotplug b/package/6in4/files/6in4.hotplug
index 49667a815e..9df993498a 100644
--- a/package/6in4/files/6in4.hotplug
+++ b/package/6in4/files/6in4.hotplug
@@ -20,6 +20,11 @@ if [ "$ACTION" = ifup ]; then
local wanip=$(find_6in4_wanip "$wandev")
[ -n "$wanip" ] && {
+ lsmod | grep -q ^sit || {
+ logger -t 6in4-update "Tunneling driver not loaded yet, deferring action"
+ exit 0
+ }
+
local tunnelid
config_get tunnelid "$cfg" tunnelid