2 # Copyright (C) 2009 OpenWrt.org
9 platform_check_image
() {
10 local board
=$
(ar71xx_board_name
)
11 local magic
="$(get_magic_word "$1")"
13 [ "$ARGC" -gt 1 ] && return 1
16 ap83 | mzk-w04nu | mzk-w300nh | tew-632brp | wrt-400n
)
17 [ "$magic" != "2705" ] && {
18 echo "Invalid image type."
24 [ "$magic" != "0100" ] && {
25 echo "Invalid image type."
32 echo "Sysupgrade is not yet supported on $board."
36 # use default for platform_do_upgrade()
40 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
41 echo 'Could not disable watchdog'
45 append sysupgrade_pre_upgrade disable_watchdog