lantiq: Add support for the BT Home Hub 5A
[openwrt/openwrt.git] / target / linux / lantiq / base-files / lib / upgrade / platform.sh
index dc5bbe2..f255e81 100755 (executable)
@@ -1,7 +1,17 @@
+. /lib/functions/lantiq.sh
+
 PART_NAME=firmware
 
 platform_check_image() {
-       [ "$ARGC" -gt 1 ] && return 1
+       [ "$#" -gt 1 ] && return 1
+       local board=$(lantiq_board_name)
+
+       case "$board" in
+               BTHOMEHUBV2B|BTHOMEHUBV3A|BTHOMEHUBV5A|P2812HNUF* )
+                       nand_do_platform_check $board $1
+                       return $?;
+                       ;;
+       esac
 
        case "$(get_magic_word "$1")" in
                # uImage