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
80 olinuxino-rt5350f-evb | \
124 xiaomi-miwifi-mini |\
129 [ "$magic" != "27051956" ] && {
130 echo "Invalid image type."
136 [ "$magic" != "48445230" ] && {
137 echo "Invalid image type."
143 [ "$magic" != "6d000080" ] && {
144 echo "Invalid image type."
153 [ "$magic" != "5ea3a417" ] && {
154 echo "Invalid image type."
160 [ "$magic" != "43535953" ] && {
161 echo "Invalid image type."
167 [ "$magic" != "03000000" ] && {
168 echo "Invalid image type."
175 echo "Sysupgrade is not yet supported on $board."
179 platform_do_upgrade
() {
180 local board
=$
(ramips_board_name
)
184 default_do_upgrade
"$ARGV"
191 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
192 echo 'Could not disable watchdog'
197 append sysupgrade_pre_upgrade disable_watchdog