mirror of
https://github.com/kenzok8/small-package.git
synced 2026-01-15 20:01:21 +08:00
10 lines
210 B
Bash
10 lines
210 B
Bash
#!/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
|