OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | platform_do_upgrade() { |
3 | office | 2 | default_do_upgrade "$ARGV" |
3 | } |
||
1 | office | 4 | |
5 | PART_NAME=firmware |
||
6 | |||
7 | platform_check_image() { |
||
8 | local board=$(board_name) |
||
9 | local magic="$(get_magic_long "$1")" |
||
10 | |||
11 | [ "$#" -gt 1 ] && return 1 |
||
12 | |||
13 | case "$board" in |
||
3 | office | 14 | bananapi,bpi-r2) |
1 | office | 15 | [ "$magic" != "27051956" ] && { |
16 | echo "Invalid image type." |
||
17 | return 1 |
||
18 | } |
||
19 | return 0 |
||
20 | ;; |
||
21 | |||
22 | *) |
||
23 | echo "Sysupgrade is not supported on your board yet." |
||
24 | return 1 |
||
25 | ;; |
||
26 | esac |
||
27 | |||
28 | return 0 |
||
3 | office | 29 | } |