You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
832 B
Plaintext

4 years ago
#!/bin/sh
. $MIGTEST/lib/migration/migration.sh
$LOG_TOOL "upgrade from v3.2.0 to v4.0.0"
. /lib/functions.sh
. /lib/ar71xx.sh
# no cloud, do factory reset if enabled for a non-cloud config
[ "$(uci get socketman.service.disabled)" != "1" ] && {
firstboot -y -r
exit 0
}
rm -f /etc/config/socketman
BOARD=$(ar71xx_board_name)
[ "$BOARD" = "dlan-pro-1200-ac" ] && (
# due to upgrade, override the existing file from saved config with the new one
cp /rom/lib/migration/plc-pib.sh /lib/migration/plc-pib.sh
. /lib/migration/plc-pib.sh
migrate_pib_wifiac_2u
)
[ "$BOARD" = "dlan-pro-1200-n" ] && (
# due to upgrade, override the existing file from saved config with the new one
cp /rom/lib/migration/plc-pib.sh /lib/migration/plc-pib.sh
. /lib/migration/plc-pib.sh
migrate_pib_wifin_1u
)
exit 0