aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/base-files/lib/upgrade/platform.sh
blob: 08039e00523853c76c7e2d49eb18fd10717637f0 (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
#
# Copyright (C) 2011 OpenWrt.org
#

PART_NAME=firmware
REQUIRE_IMAGE_METADATA=1

platform_check_image() {
	return 0
}

platform_do_upgrade() {
	local board=$(board_name)

	case "$board" in
	buffalo,bhr-4grv2)
		PART_NAME="rootfs:kernel"
		default_do_upgrade "$ARGV"
		;;
	*)
		default_do_upgrade "$ARGV"
		;;
	esac
}