oxnas: add platform_pre_upgrade for sysupgrade
[openwrt/openwrt.git] / target / linux / oxnas / base-files / lib / upgrade / platform.sh
index a43391cbbd4a73791e4c1557f86f614a25944a1c..006dd0d134612eaec16655993b26740da3444871 100644 (file)
@@ -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' ) && {