3 if [ "$ACTION" = ifup
]; then
13 config_get proto
"$cfg" proto
14 [ "$proto" = 6to4
] ||
return 0
17 config_get wandev
"$cfg" wan_device
"$(find_6to4_wanif)"
18 [ "$wandev" = "$DEVICE" ] ||
return 0
20 local wanip
=$
(find_6to4_wanip
"$wandev")
23 lsmod |
grep -q ^sit ||
{
24 logger
-t 6to4
"Tunneling driver not loaded yet, deferring action"
28 uci_set_state network
"$cfg" ipaddr
"$wanip"
33 config_foreach update_tunnel interface