#!/bin/sh . $MIGTEST/lib/migration/migration.sh . /lib/ar71xx.sh $LOG_TOOL "upgrade from v5.0.0 to v5.0.1" case "$(ar71xx_board_name)" in dlan-pro-1200-ac|\ dlan-pro-1200-n) [ -f "/etc/config/ghn" ] && { uci set ghn.ghn.interface="eth0" uci commit ghn } [ -f "/etc/config/plc" ] && { uci set plc.plc.interface="eth0" uci set plc.config.PlcIfname="eth0" uci commit plc } uci set network.lan.ifname="eth0" uci set network.@switch[0].enable_vlan="0" uci set network.@switch_vlan[0].vlan="0" uci set network.@switch_vlan[0].ports="0 2 3 4" uci del network.@switch_vlan[1] uci commit network ;; esac exit 0