mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-17 21:03:30 +00:00
update lan bat0 binding (#7190)
This commit is contained in:
parent
3a87b9106c
commit
b8abbb6856
@ -35,7 +35,7 @@ start(){
|
||||
uci set network.bat0.hop_penalty='30'
|
||||
uci set network.bat0.isolation_mark='0x00000000/0x00000000'
|
||||
|
||||
uci add_list network.lan.ifname='bat0'
|
||||
uci set network.lan.ifname="${lan} bat0"
|
||||
uci commit network
|
||||
fi
|
||||
|
||||
@ -84,8 +84,8 @@ stop(){
|
||||
if [ "$enable" != 1 ]; then
|
||||
if [ "$mesh_bat0" = "interface" ]; then
|
||||
uci delete network.bat0
|
||||
uci del_list network.lan.ifname='bat0'
|
||||
uci commit network
|
||||
sed -i 's/ bat0//' /etc/config/network
|
||||
fi
|
||||
|
||||
if [ "$mesh_nwi_mesh0" = "interface" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user