mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
netmode: bring down wet interface in extender mode
This commit is contained in:
parent
49a3984859
commit
c3acd8cc63
1 changed files with 4 additions and 0 deletions
|
|
@ -104,9 +104,13 @@ correct_uplink() {
|
||||||
|
|
||||||
if [ "$link" == "up" ]; then
|
if [ "$link" == "up" ]; then
|
||||||
ubus call network.device set_state "{\"name\":\"$WETIF\", \"defer\":true}"
|
ubus call network.device set_state "{\"name\":\"$WETIF\", \"defer\":true}"
|
||||||
|
ifconfig $WETIF down
|
||||||
|
echo ethernet > /tmp/netmodes/uplink_type
|
||||||
ubus call network.device set_state "{\"name\":\"$WANDEV\", \"defer\":false}"
|
ubus call network.device set_state "{\"name\":\"$WANDEV\", \"defer\":false}"
|
||||||
else
|
else
|
||||||
ubus call network.device set_state "{\"name\":\"$WETIF\", \"defer\":false}"
|
ubus call network.device set_state "{\"name\":\"$WETIF\", \"defer\":false}"
|
||||||
|
ifconfig $WETIF up
|
||||||
|
echo wireless > /tmp/netmodes/uplink_type
|
||||||
ubus call network.device set_state "{\"name\":\"$WANDEV\", \"defer\":true}"
|
ubus call network.device set_state "{\"name\":\"$WANDEV\", \"defer\":true}"
|
||||||
ubus call led.internet set '{"state" : "notice"}'
|
ubus call led.internet set '{"state" : "notice"}'
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue