ipq40xx: add support for Aruba AP-303
[openwrt/openwrt.git] / target / linux / ipq40xx / base-files / lib / upgrade / platform.sh
index 6b9858beb0f43a6d13c2743f8340523cea43d4df..60070fa9e3bf939670516bb390c543898f2bd585 100644 (file)
@@ -37,7 +37,7 @@ zyxel_do_upgrade() {
 
        tar Oxf $tar_file ${board_dir}/kernel | mtd write - kernel
 
-       if [ "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ]; then
+       if [ -n "$UPGRADE_BACKUP" ]; then
                tar Oxf $tar_file ${board_dir}/root | mtd -j "$UPGRADE_BACKUP" write - rootfs
        else
                tar Oxf $tar_file ${board_dir}/root | mtd write - rootfs
@@ -47,8 +47,11 @@ zyxel_do_upgrade() {
 platform_do_upgrade() {
        case "$(board_name)" in
        8dev,jalapeno |\
+       aruba,ap-303 |\
        avm,fritzbox-7530 |\
+       avm,fritzrepeater-1200 |\
        avm,fritzrepeater-3000 |\
+       cilab,meshpoint-one |\
        qxwlan,e2600ac-c2)
                nand_do_upgrade "$1"
                ;;
@@ -72,6 +75,9 @@ platform_do_upgrade() {
                CI_KERNPART="linux"
                nand_do_upgrade "$1"
                ;;
+       compex,wpj419)
+               nand_do_upgrade "$1"
+               ;;
        linksys,ea6350v3 |\
        linksys,ea8300)
                platform_do_upgrade_linksys "$1"