aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6/base-files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-19 14:13:38 +0000
committerJohn Crispin <john@openwrt.org>2014-06-19 14:13:38 +0000
commitcf80a59dcc453e72b81825a240152daa9de615a1 (patch)
tree6b08414c54b53df8a04c0e06bbb9afc1d2bb2955 /target/linux/imx6/base-files/lib
parent1a60486acbc0e1e1f87ee4806c53b5609fcfdd66 (diff)
downloadupstream-cf80a59dcc453e72b81825a240152daa9de615a1.tar.gz
upstream-cf80a59dcc453e72b81825a240152daa9de615a1.tar.bz2
upstream-cf80a59dcc453e72b81825a240152daa9de615a1.zip
imx6: add sysupgrade support
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41277
Diffstat (limited to 'target/linux/imx6/base-files/lib')
-rwxr-xr-xtarget/linux/imx6/base-files/lib/upgrade/platform.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/imx6/base-files/lib/upgrade/platform.sh b/target/linux/imx6/base-files/lib/upgrade/platform.sh
new file mode 100755
index 0000000000..7f8733a673
--- /dev/null
+++ b/target/linux/imx6/base-files/lib/upgrade/platform.sh
@@ -0,0 +1,19 @@
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+
+. /lib/functions/imx6.sh
+
+platform_check_image() {
+ local board=$(imx6_board_name)
+
+ case "$board" in
+ gw54xx)
+ nand_do_platform_check $board $1
+ return $?;
+ ;;
+ esac
+
+ echo "Sysupgrade is not yet supported on $board."
+ return 1
+}