scripts: fix wrong usage of '==' operator
[openwrt/staging/dedeckeh.git] / target / linux / ar71xx / base-files / etc / uci-defaults / 03_network-switchX-migration
index 718a924f1918bf56b77ab7392c676a2d3a96772a..d9aa51989a7af4d41dcb32fcec3a635146d89836 100755 (executable)
@@ -34,7 +34,7 @@ migrate_switch_name() {
        config_foreach do_change_switch_name switch name $oldname $newname
        config_foreach do_change_switch_name switch_vlan device $oldname $newname
 
-       [ "$SWITCH_NAME_CHANGED" == "1" ] && {
+       [ "$SWITCH_NAME_CHANGED" = "1" ] && {
                logger -t migrate-switchX "Switch names updated, saving network configuration"
                uci commit network
        }
@@ -58,6 +58,7 @@ ap96|\
 airrouter|\
 dir-600-a1|\
 dir-615-c1|\
+dir-615-e1|\
 dir-615-e4|\
 ja76pf|\
 rb-750|\
@@ -80,6 +81,7 @@ ew-dorin-router)
        migrate_switch_name "eth0" "switch0"
        ;;
 
+el-m150|\
 rb-450)
        migrate_switch_name "eth1" "switch0"
        ;;