X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/5a636bea987c9906668efd96513456eb87a4f99c..e3d97e60d82760a934bb65b3f67df992c434e4a6:/package/6in4/files/6in4.hotplug?ds=sidebyside 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