2 # Copyright (C) 2009-2010 OpenWrt.org
8 RAMFS_COPY_DATA
=/lib
/adm5120.sh
10 platform_check_image
() {
11 local magic
="$(get_magic_word "$1")"
13 [ "$ARGC" -gt 1 ] && return 1
18 [ "$magic" != "4844" ] && {
19 echo "Invalid image type."
28 echo "Sysupgrade is not yet supported on $board_name."
32 platform_do_upgrade
() {
33 PART_NAME
="$sys_mtd_part"
34 default_do_upgrade
"$ARGV"
39 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
40 echo 'Could not disable watchdog'
44 append sysupgrade_pre_upgrade disable_watchdog