ath79: base-files: disable sysupgrade for routerstations and ja76pf2
authorTomasz Maciej Nowak <tomek_n@o2.pl>
Fri, 6 Sep 2019 15:02:36 +0000 (17:02 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 21 Oct 2019 12:23:39 +0000 (14:23 +0200)
Previous commit 0cc87b3 "ath79: image: disable sysupgrade images for
routerstations and ja76pf2" doesn't remedy completely the posibility of
bricking the device, since user could try to downgrade with an older
image. Therefore disable sysupgrade code for these boards with a small
note.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
target/linux/ath79/base-files/lib/upgrade/platform.sh

index f4fca06384b1f02d2cc45a4992e019f5a7808db7..10756abbafd50cd8a248d1c31d6416690a7c41a5 100644 (file)
@@ -45,11 +45,11 @@ platform_do_upgrade() {
                redboot_fis_do_upgrade "$1" vmlinux_2
                ;;
        jjplus,ja76pf2)
-               redboot_fis_do_upgrade "$1" linux
+               echo "Sysupgrade disabled due bug FS#2428"
                ;;
        ubnt,routerstation|\
        ubnt,routerstation-pro)
-               redboot_fis_do_upgrade "$1" kernel
+               echo "Sysupgrade disabled due bug FS#2428"
                ;;
        *)
                default_do_upgrade "$1"