X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3abe70cd873d437656bbf3e9b29c13bcd44f2c19..53d65a1c4a68c4b00d0d8f65b7578042c03ff280:/package/6to4/files/6to4.hotplug?ds=inline diff --git a/package/6to4/files/6to4.hotplug b/package/6to4/files/6to4.hotplug index 037abd48f..1e3d26c41 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" )& }