ramips: improve sysupgrade helpers for I-O DATA devices
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / lib / upgrade / platform.sh
index 3c6d02f4fa6ac1824d8e96085c73fe5bfacf5182..85e97b4f839a0521315cc7ed438172a7c621ed72 100755 (executable)
@@ -125,11 +125,13 @@ platform_do_upgrade() {
        iodata,wn-ax2033gr|\
        iodata,wn-dx1167r|\
        iodata,wn-dx2033gr)
-               iodata_mstc_upgrade_prepare "0xfe75"
+               iodata_mstc_set_flag "debugflag" "factory" "0xfe75" "0,1" "1"
+               iodata_mstc_set_flag "bootnum" "persist" "0x4" "1,2" "1"
                nand_do_upgrade "$1"
                ;;
        iodata,wn-dx1200gr)
-               iodata_mstc_upgrade_prepare "0x1fe75"
+               iodata_mstc_set_flag "debugflag" "factory" "0x1fe75" "0,1" "1"
+               iodata_mstc_set_flag "bootnum" "persist" "0x4" "1,2" "1"
                nand_do_upgrade "$1"
                ;;
        tplink,er605-v2)