diff options
Diffstat (limited to 'target/linux/ramips/base-files/etc/board.d/02_network')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/02_network | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 7ecc11b37b..63644331e5 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -14,10 +14,10 @@ ramips_setup_rt3x5x_vlans() local wanports="" local lanports="" for port in 5 4 3 2 1 0; do - if [ `swconfig dev rt305x port $port get disable` = "1" ]; then + if [ "$(swconfig dev rt305x port $port get disable)" = "1" ]; then continue fi - if [ `swconfig dev rt305x port $port get lan` = "0" ]; then + if [ "$(swconfig dev rt305x port $port get lan)" = "0" ]; then wanports="$port:wan $wanports" else lanports="$port:lan $lanports" @@ -503,7 +503,7 @@ ramips_setup_interfaces() "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "7t@eth0" ;; *) - RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"` + RT3X5X=$(grep -E "(RT3.5|RT5350)" /proc/cpuinfo) if [ -n "${RT3X5X}" ]; then ramips_setup_rt3x5x_vlans else |