2 # Copyright (C) 2009 OpenWrt.org
8 RAMFS_COPY_DATA
=/lib
/ar71xx.sh
10 platform_check_image
() {
11 local board
=$
(ar71xx_board_name
)
12 local magic
="$(get_magic_word "$1")"
14 [ "$ARGC" -gt 1 ] && return 1
17 ap83 | mzk-w04nu | mzk-w300nh | tew-632brp | wrt-400n
)
18 [ "$magic" != "2705" ] && {
19 echo "Invalid image type."
24 tl-wr741nd | tl-wr941nd
)
25 [ "$magic" != "0100" ] && {
26 echo "Invalid image type."
32 [ "$magic" != "4e4c" ] && {
33 echo "Invalid image type."
40 echo "Sysupgrade is not yet supported on $board."
44 # use default for platform_do_upgrade()
48 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
49 echo 'Could not disable watchdog'
54 append sysupgrade_pre_upgrade disable_watchdog