ath79: add support for Fortinet FAP-221-B
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / lib / upgrade / platform.sh
index 0de3dbf3b51aa41aa1f593736dbc065144fd1af3..d03163a8eaf64e6c5cb3050212f8bc300bd1aa61 100644 (file)
@@ -54,6 +54,17 @@ platform_do_upgrade() {
                ROOTFS_FILE="root.squashfs"
                platform_do_upgrade_failsafe_datachk "$1"
                ;;
+       fortinet,fap-221-b)
+               SKIP_HASH="1"
+               ENV_SCRIPT="/dev/null"
+               IMAGE_LIST="tar tzf $1"
+               IMAGE_CMD="tar xzOf $1"
+               KERNEL_PART="loader"
+               ROOTFS_PART="fwconcat0"
+               KERNEL_FILE="uImage-lzma.bin"
+               ROOTFS_FILE="root.squashfs"
+               platform_do_upgrade_failsafe_datachk "$1"
+               ;;
        jjplus,ja76pf2)
                platform_do_upgrade_redboot_fis "$1" linux
                ;;