diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-05 00:52:10 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-05 00:52:10 +0000 |
commit | 8aba9a00dc86253f48d878445010cfa68b777b6a (patch) | |
tree | 997bfac02a6448c050f59b08e6e25734f4793da8 /package/6in4/files | |
parent | 7c3bbe150ab3e9ec3bdd9e25f8c9e05da5a2ab1b (diff) | |
download | upstream-8aba9a00dc86253f48d878445010cfa68b777b6a.tar.gz upstream-8aba9a00dc86253f48d878445010cfa68b777b6a.tar.bz2 upstream-8aba9a00dc86253f48d878445010cfa68b777b6a.zip |
6in4, 6to4: prevent starting the tunnel if kmod-sit is not yet loaded (#9643)
SVN-Revision: 27449
Diffstat (limited to 'package/6in4/files')
-rw-r--r-- | package/6in4/files/6in4.hotplug | 5 |
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 |