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 [ "$#" -gt 1 ] && return 1
105 [ "$magic" != "27051956" ] && {
106 echo "Invalid image type."
114 [ "$magic" != "5ea3a417" ] && {
115 echo "Invalid image type."
121 [ "$magic" != "43535953" ] && {
122 echo "Invalid image type."
129 echo "Sysupgrade is not yet supported on $board."
133 platform_do_upgrade
() {
134 local board
=$
(ramips_board_name
)
138 default_do_upgrade
"$ARGV"
145 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
146 echo 'Could not disable watchdog'
151 append sysupgrade_pre_upgrade disable_watchdog