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
}
dir-615-e1|\
dir-615-e4|\
ja76pf|\
+mr-12|\
+mr-16|\
rb-750|\
rb-751|\
tew-632brp|\
migrate_switch_name "eth0" "switch0"
;;
+el-m150|\
rb-450)
migrate_switch_name "eth1" "switch0"
;;