bcm53xx: remove useless echo in 02_network
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 17 Aug 2020 21:16:58 +0000 (23:16 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 17 Aug 2020 21:16:58 +0000 (23:16 +0200)
The output is already produced in the inner $() brackets, no need
to catch and echo it again.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/bcm53xx/base-files/etc/board.d/02_network

index b3d614d6a2b64d088af52249c9ef0a320865d7af..6774e5bf46bd434870fbb10538f2ea41912e8f95 100755 (executable)
@@ -55,8 +55,8 @@ bcm53xx_setup_interfaces()
                # vlan2ports=4 5u
                # and early Netgear R8000 was using
                # vlan1ports=3 2 1 0 5 7 8*
-               vlan1ports="$(echo $(nvram get vlan1ports | tr " " "\n" | sort))"
-               vlan2ports="$(echo $(nvram get vlan2ports | tr " " "\n" | sort))"
+               vlan1ports="$(nvram get vlan1ports | tr " " "\n" | sort)"
+               vlan2ports="$(nvram get vlan2ports | tr " " "\n" | sort)"
                if echo "$vlan1ports" | egrep -q "^1 2 3 4 5" && \
                   echo "$vlan2ports" | egrep -q "^0 5"; then
                        ucidef_add_switch "switch0" \