aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6/base-files/lib/upgrade/platform.sh
blob: a9ca5ee875b34f56ad43c13b2990a54ea148ad7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# Copyright (C) 2010-2015 OpenWrt.org
#

platform_check_image() {
	local board=$(board_name)

	case "$board" in
	*gw5*)
		nand_do_platform_check $board $1
		return $?;
		;;
	esac

	echo "Sysupgrade is not yet supported on $board."
	return 1
}

platform_pre_upgrade() {
	local board=$(board_name)

	case "$board" in
	*gw5*)
		nand_do_upgrade "$1"
		;;
	esac
}