ar71xx: Add support for the Meraki MR12 & MR16
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / uci-defaults / 03_network-switchX-migration
old mode 100755 (executable)
new mode 100644 (file)
index 8757b21..aa0e1b4
@@ -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,8 +58,11 @@ ap96|\
 airrouter|\
 dir-600-a1|\
 dir-615-c1|\
+dir-615-e1|\
 dir-615-e4|\
 ja76pf|\
+mr-12|\
+mr-16|\
 rb-750|\
 rb-751|\
 tew-632brp|\
@@ -75,12 +78,12 @@ whr-hp-g300n|\
 whr-hp-gn|\
 wzr-hp-ag300h|\
 wzr-hp-g450h|\
-wzr-600dhp|\
 ew-dorin|\
 ew-dorin-router)
        migrate_switch_name "eth0" "switch0"
        ;;
 
+el-m150|\
 rb-450)
        migrate_switch_name "eth1" "switch0"
        ;;