mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-12 03:58:40 +01:00
inteno-netmodes: adapt to layer2 changes
This commit is contained in:
parent
bc96e7a362
commit
1f9ba0a4fd
2 changed files with 4 additions and 2 deletions
|
|
@ -235,6 +235,7 @@ switch_netmode() {
|
|||
/etc/init.d/environment reload
|
||||
case "$curmode" in
|
||||
routed*)
|
||||
[ -f /etc/init.d/layer2 ] && /etc/init.d/layer2 reload
|
||||
ubus call uci commit '{"config":"network"}'
|
||||
;;
|
||||
repeater*)
|
||||
|
|
@ -242,6 +243,7 @@ switch_netmode() {
|
|||
/etc/init.d/omcproxy stop
|
||||
fi
|
||||
if [ "$netreload" != "0" ]; then
|
||||
[ -f /etc/init.d/layer2 ] && /etc/init.d/layer2 reload
|
||||
ubus call uci commit '{"config":"network"}'
|
||||
fi
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@ uci commit wireless
|
|||
if [ "$from_gui" == "true" ]; then
|
||||
# check for connectivity
|
||||
wifi reload
|
||||
[ -f /etc/init.d/layer2_interface_ethernet -a -f /etc/config/layer2_interface_ethernet ] && /etc/init.d/layer2_interface_ethernet reload
|
||||
[ -f /etc/init.d/layer2 ] && /etc/init.d/layer2 reload
|
||||
i=$SLEEPTIME;
|
||||
|
||||
while [ $i -gt 0 ]; do
|
||||
|
|
@ -283,6 +283,6 @@ else
|
|||
# wifi reload
|
||||
wifi reload
|
||||
fi
|
||||
[ -f /etc/init.d/layer2_interface_ethernet -a -f /etc/config/layer2_interface_ethernet ] && /etc/init.d/layer2_interface_ethernet reload
|
||||
[ -f /etc/init.d/layer2 ] && /etc/init.d/layer2 reload
|
||||
ubus call leds set '{"state":"normal"}'
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue