2 # Copyright (C) 2010 OpenWrt.org
8 RAMFS_COPY_DATA
=/lib
/cns21xx.sh
10 platform_check_image
() {
11 local board
=$
(get_board_name
)
12 local magic
="$(get_magic_word "$1")"
14 [ "$ARGC" -gt 1 ] && return 1
18 [ "$magic" != "0b1c" ] && {
19 echo "Invalid image type."
25 [ "$magic" != "0c1c" ] && {
26 echo "Invalid image type."
33 echo "Sysupgrade is not yet supported on $board."
39 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
40 echo 'Could not disable watchdog'
45 append sysupgrade_pre_upgrade disable_watchdog