From 53d65a1c4a68c4b00d0d8f65b7578042c03ff280 Mon Sep 17 00:00:00 2001 From: jow Date: Tue, 5 Jul 2011 00:52:10 +0000 Subject: [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 --- package/6in4/files/6in4.hotplug | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package/6in4/files') diff --git a/package/6in4/files/6in4.hotplug b/package/6in4/files/6in4.hotplug index 49667a815..9df993498 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 -- cgit v1.2.3