forked from freifunk-franken/firmware
fff-layer3-config: Always clear client interface list completely
Previously, some interfaces in the client ifname list have been kept. The actual reason for this is unknown, it might have been used for the bat0 interfaces. Filtering the interface list in this way might lead to interfaces being retained unintentionally, especially with the diverse naming of DSA interfaces. As it is not required anymore, remove the retention of some interfaces completely. Fixes: #207 Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed-by: Robert Langhammer <rlanghammer@web.de> Reviewed-by: Johannes Kimmel <fff@bareminimum.eu>
This commit is contained in:
parent
330ed1b52d
commit
17bc1a7e62
|
@ -50,11 +50,10 @@ configure() {
|
||||||
|
|
||||||
# set interface
|
# set interface
|
||||||
#remove all eth interfaces
|
#remove all eth interfaces
|
||||||
ifaces=$(uci get network.client.ifname | sed 's/\beth[^ ]* *//g' | sed 's/\bswitch[^ ]* *//g')
|
|
||||||
if vlan=$(uci -q get gateway.@client[0].vlan); then
|
if vlan=$(uci -q get gateway.@client[0].vlan); then
|
||||||
uci set network.client.ifname="${SWITCHDEV}.$vlan $ifaces"
|
uci set network.client.ifname="${SWITCHDEV}.$vlan"
|
||||||
elif iface=$(uci -q get gateway.@client[0].iface); then
|
elif iface=$(uci -q get gateway.@client[0].iface); then
|
||||||
uci set network.client.ifname="$iface $ifaces"
|
uci set network.client.ifname="$iface"
|
||||||
else
|
else
|
||||||
echo "WARNING: No Interface for client specified"
|
echo "WARNING: No Interface for client specified"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue