aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/imx6/base-files/lib/upgrade/platform.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/imx6/base-files/lib/upgrade/platform.sh b/target/linux/imx6/base-files/lib/upgrade/platform.sh
index c34a47b0de..c48e2c910e 100755
--- a/target/linux/imx6/base-files/lib/upgrade/platform.sh
+++ b/target/linux/imx6/base-files/lib/upgrade/platform.sh
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2010 OpenWrt.org
+# Copyright (C) 2010-2015 OpenWrt.org
#
. /lib/imx6.sh
@@ -17,3 +17,13 @@ platform_check_image() {
echo "Sysupgrade is not yet supported on $board."
return 1
}
+
+platform_pre_upgrade() {
+ local board=$(imx6_board_name)
+
+ case "$board" in
+ gw54xx)
+ nand_do_upgrade "$1"
+ ;;
+ esac
+}