diff options
author | James <> | 2015-09-26 12:29:31 +0100 |
---|---|---|
committer | James <> | 2015-09-26 12:29:31 +0100 |
commit | 626d9efa74685720020e816f3a917b7591d3cf7a (patch) | |
tree | d22eef73ae82287b30a1140decb4fc806d39d621 /target/linux/imx6/base-files/lib/upgrade/platform.sh | |
download | trunk-47048-626d9efa74685720020e816f3a917b7591d3cf7a.tar.gz trunk-47048-626d9efa74685720020e816f3a917b7591d3cf7a.tar.bz2 trunk-47048-626d9efa74685720020e816f3a917b7591d3cf7a.zip |
trunk-47048
Diffstat (limited to 'target/linux/imx6/base-files/lib/upgrade/platform.sh')
-rwxr-xr-x | target/linux/imx6/base-files/lib/upgrade/platform.sh | 29 |
1 files changed, 29 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 0000000..c48e2c9 --- /dev/null +++ b/target/linux/imx6/base-files/lib/upgrade/platform.sh @@ -0,0 +1,29 @@ +# +# Copyright (C) 2010-2015 OpenWrt.org +# + +. /lib/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 +} + +platform_pre_upgrade() { + local board=$(imx6_board_name) + + case "$board" in + gw54xx) + nand_do_upgrade "$1" + ;; + esac +} |