X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3abe70cd873d437656bbf3e9b29c13bcd44f2c19..b8d5619ca8ac95b4a0365a7adcce4b0d9c7305ce:/package/6to4/files/6to4.hotplug diff --git a/package/6to4/files/6to4.hotplug b/package/6to4/files/6to4.hotplug index 037abd48f..202a3c737 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,10 +22,7 @@ if [ "$ACTION" = ifup ]; then local wanip=$(find_6to4_wanip "$wandev") - [ -n "$wanip" ] && { - uci_set_state network "$cfg" ipaddr "$wanip" - ( ifup "$cfg" )& - } + [ -n "$wanip" ] && ifup "$cfg" } config_foreach update_tunnel interface