3 if [ "$ACTION" = ifup
]; then
13 config_get proto
"$cfg" proto
14 [ "$proto" = tayga
] ||
return 0
17 config_get wandev4
"$cfg" wan4_device
"$(find_tayga_wanif4)"
20 config_get wandev6
"$cfg" wan6_device
"$(find_tayga_wanif6)"
22 [ "$wandev4" = "$DEVICE" ] ||
[ "$wandev6" = "$DEVICE" ] ||
return 0
24 local wanip4
=$
(find_tayga_wanip4
"$wandev4")
25 local wanip6
=$
(find_tayga_wanip6
"$wandev6")
27 [ -n "$wanip4" ] && [ -n "$wanip6" ] && {
28 uci_set_state network
"$cfg" ipv4addr
"$wanip4"
29 uci_set_state network
"$cfg" ipv6addr
"$wanip6"
31 logger
-t tayga-update
"Re-establishing tayga NAT64 due to change on $INTERFACE ($DEVICE)"
36 config_foreach update_tunnel interface