summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/linux/oxnas/base-files/lib/upgrade/platform.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/oxnas/base-files/lib/upgrade/platform.sh b/target/linux/oxnas/base-files/lib/upgrade/platform.sh
index a43391cbbd..006dd0d134 100644
--- a/target/linux/oxnas/base-files/lib/upgrade/platform.sh
+++ b/target/linux/oxnas/base-files/lib/upgrade/platform.sh
@@ -15,6 +15,10 @@ platform_check_image() {
return $?
}
+platform_pre_upgrade() {
+ nand_do_upgrade $1
+}
+
disable_watchdog() {
killall watchdog
( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {