ipq40xx: ipq4019: Add new device Compex WPJ419
[openwrt/openwrt.git] / target / linux / ipq40xx / base-files / lib / upgrade / platform.sh
index dac773d2fe1101b2eadcdbe9e9d76249f318545f..96f865c67e3249834f01bab1953de8c588b73eb3 100644 (file)
@@ -37,8 +37,8 @@ zyxel_do_upgrade() {
 
        tar Oxf $tar_file ${board_dir}/kernel | mtd write - kernel
 
-       if [ "$SAVE_CONFIG" -eq 1 ]; then
-               tar Oxf $tar_file ${board_dir}/root | mtd -j "$CONF_TAR" write - rootfs
+       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
        fi
@@ -48,6 +48,7 @@ platform_do_upgrade() {
        case "$(board_name)" in
        8dev,jalapeno |\
        avm,fritzbox-7530 |\
+       avm,fritzrepeater-1200 |\
        avm,fritzrepeater-3000 |\
        qxwlan,e2600ac-c2)
                nand_do_upgrade "$1"
@@ -72,6 +73,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"