mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
a25fbb5c9a
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
27 lines
417 B
Bash
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
|