2 # Copyright (C) 2010 OpenWrt.org
8 RAMFS_COPY_DATA
=/lib
/ramips.sh
10 platform_check_image
() {
11 local board
=$
(ramips_board_name
)
12 local magic
="$(get_magic_long "$1")"
14 [ "$ARGC" -gt 1 ] && return 1
81 [ "$magic" != "27051956" ] && {
82 echo "Invalid image type."
88 [ "$magic" != "5ea3a417" ] && {
89 echo "Invalid image type."
96 echo "Sysupgrade is not yet supported on $board."
100 platform_do_upgrade
() {
101 local board
=$
(ramips_board_name
)
105 default_do_upgrade
"$ARGV"
112 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
113 echo 'Could not disable watchdog'
118 append sysupgrade_pre_upgrade disable_watchdog