mcs814x: Remove unmaintained target
[openwrt/openwrt.git] / target / linux / ppc40x / base-files / lib / upgrade / platform.sh
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4
5 PART_NAME=firmware
6
7 platform_check_image() {
8 local board=$(board_name)
9 local magic="$(get_magic_word "$1")"
10
11 [ "$#" -gt 1 ] && return 1
12
13 case "$board" in
14 kilauea | openrb | magicbox)
15 [ "$magic" != "2705" ] && {
16 echo "Invalid image type."
17 return 1
18 }
19 return 0
20 ;;
21 esac
22
23 echo "Sysupgrade is not yet supported on $board."
24 return 1
25 }
26
27 platform_do_upgrade() {
28 local board=$(board_name)
29
30 case "$board" in
31 *)
32 default_do_upgrade "$ARGV"
33 ;;
34 esac
35 }