2014-06-19 14:13:38 +00:00
|
|
|
#
|
2015-09-15 16:05:03 +00:00
|
|
|
# Copyright (C) 2010-2015 OpenWrt.org
|
2014-06-19 14:13:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
platform_check_image() {
|
2017-05-12 20:36:07 +00:00
|
|
|
local board=$(board_name)
|
2014-06-19 14:13:38 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2015-10-10 12:35:02 +00:00
|
|
|
*gw5*)
|
2014-06-19 14:13:38 +00:00
|
|
|
nand_do_platform_check $board $1
|
|
|
|
return $?;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo "Sysupgrade is not yet supported on $board."
|
|
|
|
return 1
|
|
|
|
}
|
2015-09-15 16:05:03 +00:00
|
|
|
|
|
|
|
platform_pre_upgrade() {
|
2017-05-12 20:36:07 +00:00
|
|
|
local board=$(board_name)
|
2015-09-15 16:05:03 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2015-10-10 12:35:02 +00:00
|
|
|
*gw5*)
|
2015-09-15 16:05:03 +00:00
|
|
|
nand_do_upgrade "$1"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|