openwrt/target/linux/oxnas/base-files/lib/upgrade/platform.sh
Rafał Miłecki a25fbb5c9a oxnas: drop some unused sysupgrade code
First of all platform_do_upgrade_phase2 doesn't seem to be defined
anywhere. Other than that platform_do_upgrade is not likely to be ever
called. There is a call to nand_do_platform_check which triggers
nand_upgrade_stage1 call with "exit 0" in it.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 47038
2015-09-24 09:18:47 +00:00

27 lines
417 B
Bash

#
# Copyright (C) 2014 OpenWrt.org
#
. /lib/oxnas.sh
RAMFS_COPY_DATA=/lib/oxnas.sh
platform_check_image() {
local board=$(oxnas_board_name)
[ "$ARGC" -gt 1 ] && return 1
nand_do_platform_check $board $1
return $?
}
disable_watchdog() {
killall watchdog
( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
echo 'Could not disable watchdog'
return 1
}
}
append sysupgrade_pre_upgrade disable_watchdog