mvebu: add sysupgrade support for clearfog
[openwrt/openwrt.git] / target / linux / mvebu / base-files / lib / upgrade / platform.sh
index 2f699a7..5652e98 100755 (executable)
@@ -20,6 +20,10 @@ platform_check_image() {
                }
                return 0;
                ;;
+       armada-388-clearfog)
+               platform_check_image_clearfog "$ARGV"
+               return $?
+               ;;
        esac
 
        echo "Sysupgrade is not yet supported on $board."
@@ -33,11 +37,23 @@ platform_do_upgrade() {
        armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-shelby|armada-xp-linksys-mamba)
                platform_do_upgrade_linksys "$ARGV"
                ;;
+       armada-388-clearfog)
+               platform_do_upgrade_clearfog "$ARGV"
+               ;;
        *)
                default_do_upgrade "$ARGV"
                ;;
        esac
 }
+platform_copy_config() {
+       local board=$(mvebu_board_name)
+
+       case "$board" in
+       armada-388-clearfog)
+               platform_copy_config_clearfog "$ARGV"
+               ;;
+       esac
+}
 
 disable_watchdog() {
        killall watchdog