10 lines
210 B
Plaintext
10 lines
210 B
Plaintext
![]() |
#!/bin/sh
|
||
|
|
||
|
uci get sysuh3c.@login[0].ifname >/dev/null 2>&1 && exit 0
|
||
|
WAN_IF=$(uci get network.wan.ifname 2>/dev/null)
|
||
|
[ $? -ne 0 ] && exit 0
|
||
|
uci set sysuh3c.@login[0].ifname=$WAN_IF
|
||
|
uci commit sysuh3c
|
||
|
|
||
|
exit 0
|