From 8aba9a00dc86253f48d878445010cfa68b777b6a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 5 Jul 2011 00:52:10 +0000 Subject: 6in4, 6to4: prevent starting the tunnel if kmod-sit is not yet loaded (#9643) SVN-Revision: 27449 --- package/6to4/files/6to4.hotplug | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package/6to4/files') diff --git a/package/6to4/files/6to4.hotplug b/package/6to4/files/6to4.hotplug index 037abd48f5..1e3d26c418 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" )& } -- cgit v1.2.3