From b8abbb685631ea84f628a43920a1d6eed437c6c3 Mon Sep 17 00:00:00 2001 From: ntlf9t <31321865+ntlf9t@users.noreply.github.com> Date: Sat, 26 Jun 2021 02:48:33 +0800 Subject: [PATCH] update lan bat0 binding (#7190) --- package/lean/luci-app-easymesh/root/etc/init.d/easymesh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/lean/luci-app-easymesh/root/etc/init.d/easymesh b/package/lean/luci-app-easymesh/root/etc/init.d/easymesh index 975e69f68..1a84474db 100755 --- a/package/lean/luci-app-easymesh/root/etc/init.d/easymesh +++ b/package/lean/luci-app-easymesh/root/etc/init.d/easymesh @@ -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