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."
33 echo "Sysupgrade is not yet supported on $board."
37 # use default for platform_do_upgrade()
41 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
42 echo 'Could not disable watchdog'
47 append sysupgrade_pre_upgrade disable_watchdog