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