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
79 olinuxino-rt5350f-evb | \
121 xiaomi-miwifi-mini |\
126 [ "$magic" != "27051956" ] && {
127 echo "Invalid image type."
133 [ "$magic" != "48445230" ] && {
134 echo "Invalid image type."
140 [ "$magic" != "6d000080" ] && {
141 echo "Invalid image type."
150 [ "$magic" != "5ea3a417" ] && {
151 echo "Invalid image type."
157 [ "$magic" != "43535953" ] && {
158 echo "Invalid image type."
164 [ "$magic" != "03000000" ] && {
165 echo "Invalid image type."
172 echo "Sysupgrade is not yet supported on $board."
176 platform_do_upgrade
() {
177 local board
=$
(ramips_board_name
)
181 default_do_upgrade
"$ARGV"
188 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
189 echo 'Could not disable watchdog'
194 append sysupgrade_pre_upgrade disable_watchdog