gluon-legacy: remove_bat0 doesn't make sense for the wan interface
This commit is contained in:
parent
a045ec6549
commit
b775741d30
@ -25,7 +25,7 @@ remove_bat0() {
|
||||
}
|
||||
|
||||
mesh_ifname="$(uci get 'network.@legacy.mesh_ifname@.ifname' | remove_bat0)"
|
||||
wan_ifname="$(uci get network.wan.ifname | remove_bat0)"
|
||||
wan_ifname="$(uci get network.wan.ifname)"
|
||||
|
||||
if [ -n "$wan_ifname" ] && iface_exists "$wan_ifname"; then
|
||||
[ -z "$mesh_ifname" ] || sysconfig_set lan_ifname "$mesh_ifname"
|
||||
|
Loading…
Reference in New Issue
Block a user