diff --git a/target/linux/lantiq/base-files/lib/upgrade/platform.sh b/target/linux/lantiq/base-files/lib/upgrade/platform.sh index f255e817994..d4ea6c3ec47 100755 --- a/target/linux/lantiq/base-files/lib/upgrade/platform.sh +++ b/target/linux/lantiq/base-files/lib/upgrade/platform.sh @@ -25,6 +25,16 @@ platform_check_image() { esac } +platform_pre_upgrade() { + local board=$(lantiq_board_name) + + case "$board" in + BTHOMEHUBV2B|BTHOMEHUBV3A|P2812HNUF* ) + nand_do_upgrade $1 + ;; + esac +} + # use default for platform_do_upgrade() disable_watchdog() {