apm821xx: add support for the Western Digital MyBook Live Series
[openwrt/openwrt.git] / target / linux / apm821xx / base-files / lib / upgrade / platform.sh
index ddf775f4ae83c7c30c102984eee21ffb12b2c891..d5b0986dd5ab43e93bee13d185eefeb2c910f1a2 100755 (executable)
@@ -11,6 +11,11 @@ platform_check_image() {
        [ "$#" -gt 1 ] && return 1
 
        case "$board" in
+       mbl)
+               mbl_do_platform_check $board "$1"
+               return $?;
+               ;;
+
        mr24)
                merakinand_do_platform_check $board "$1"
                return $?;
@@ -41,6 +46,10 @@ platform_do_upgrade() {
        local board=$(apm821xx_board_name)
 
        case "$board" in
+       mbl)
+               mbl_do_upgrade "$ARGV"
+               ;;
+
        *)
                default_do_upgrade "$ARGV"
                ;;
@@ -51,6 +60,10 @@ platform_copy_config() {
        local board=$(apm821xx_board_name)
 
        case "$board" in
+       mbl)
+               mbl_copy_config
+               ;;
+
        *)
                ;;
        esac