diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-15 09:49:33 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-15 09:49:33 +0000 |
commit | 864d2b9aeed2ee736de2b7c8d9dc765290e62e1e (patch) | |
tree | eb49ba004dc787510baa7de9d48f3f9557755c55 /package/6to4/files/6to4.hotplug | |
parent | fe29d066d54e2baa717c7464aad72c3343dff6ff (diff) | |
download | master-187ad058-864d2b9aeed2ee736de2b7c8d9dc765290e62e1e.tar.gz master-187ad058-864d2b9aeed2ee736de2b7c8d9dc765290e62e1e.tar.bz2 master-187ad058-864d2b9aeed2ee736de2b7c8d9dc765290e62e1e.zip |
6to4: add netifd support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30949 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/6to4/files/6to4.hotplug')
-rw-r--r-- | package/6to4/files/6to4.hotplug | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/package/6to4/files/6to4.hotplug b/package/6to4/files/6to4.hotplug index 1e3d26c418..202a3c737c 100644 --- a/package/6to4/files/6to4.hotplug +++ b/package/6to4/files/6to4.hotplug @@ -3,6 +3,9 @@ if [ "$ACTION" = ifup ]; then . /etc/functions.sh + INCLUDE_ONLY=1 + . /lib/netifd/proto/6to4.sh + include /lib/network scan_interfaces @@ -19,15 +22,7 @@ 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" )& - } + [ -n "$wanip" ] && ifup "$cfg" } config_foreach update_tunnel interface |