OpenWrt – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4  
5 . /lib/adm5120.sh
6  
7 PART_NAME="firmware"
8 RAMFS_COPY_DATA=/lib/adm5120.sh
9  
10 platform_check_image() {
11 local magic="$(get_magic_word "$1")"
12  
13 [ "$#" -gt 1 ] && return 1
14  
15 case "$board_name" in
16 "ZyXEL"*|"Compex WP54 family")
17 # .trx files
18 [ "$magic" != "4844" ] && {
19 echo "Invalid image type."
20 return 1
21 }
22 return 0
23 ;;
24 *)
25 ;;
26 esac
27  
28 echo "Sysupgrade is not yet supported on $board_name."
29 return 1
30 }
31  
32 platform_do_upgrade() {
33 PART_NAME="$sys_mtd_part"
34 default_do_upgrade "$ARGV"
35 }