Skip to content
Snippets Groups Projects
Commit b775741d authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-legacy: remove_bat0 doesn't make sense for the wan interface

parent a045ec65
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ remove_bat0() { ...@@ -25,7 +25,7 @@ remove_bat0() {
} }
mesh_ifname="$(uci get 'network.@legacy.mesh_ifname@.ifname' | 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 if [ -n "$wan_ifname" ] && iface_exists "$wan_ifname"; then
[ -z "$mesh_ifname" ] || sysconfig_set lan_ifname "$mesh_ifname" [ -z "$mesh_ifname" ] || sysconfig_set lan_ifname "$mesh_ifname"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment