2 # Copyright (C) 2014 OpenWrt.org
7 RAMFS_COPY_DATA=/lib/mvebu.sh
9 platform_check_image() {
10 local board=$(mvebu_board_name)
11 local magic_long="$(get_magic_long "$1")"
13 [ "$#" -gt 1 ] && return 1
17 [ "$magic_long" != "27051956" ] && {
18 echo "Invalid image type."
25 echo "Sysupgrade is not yet supported on $board."
29 platform_do_upgrade() {
30 local board=$(mvebu_board_name)
34 platform_do_upgrade_linksys "$ARGV"
37 default_do_upgrade "$ARGV"
44 ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
45 echo 'Could not disable watchdog'
50 append sysupgrade_pre_upgrade disable_watchdog