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_word "$1")"
14 [ "$ARGC" -gt 1 ] && return 1
29 [ "$magic" != "2705" ] && {
30 echo "Invalid image type."
37 echo "Sysupgrade is not yet supported on $board."
41 platform_do_upgrade
() {
42 local board
=$
(ramips_board_name
)
46 default_do_upgrade
"$ARGV"
53 ( ps |
grep -v 'grep' |
grep '/dev/watchdog' ) && {
54 echo 'Could not disable watchdog'
59 append sysupgrade_pre_upgrade disable_watchdog