update lan bat0 binding (#7190)

This commit is contained in:
ntlf9t 2021-06-26 02:48:33 +08:00 committed by GitHub
parent 3a87b9106c
commit b8abbb6856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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