2 # Copyright (C) 2013 OpenWrt.org
7 platform_check_image
() {
8 local magic
="$(get_magic_long "$1")"
10 [ "$ARGC" -gt 1 ] && return 1
12 [ "$magic" != "27051956" ] && {
13 echo "Invalid image type."
22 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
23 echo 'Could not disable watchdog'
28 append sysupgrade_pre_upgrade disable_watchdog