aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/kirkwood/base-files/lib/upgrade/platform.sh')
-rw-r--r--target/linux/kirkwood/base-files/lib/upgrade/platform.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/kirkwood/base-files/lib/upgrade/platform.sh b/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
index 3f84df2808..e2f6dec44a 100644
--- a/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
+++ b/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
@@ -4,7 +4,18 @@ RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
REQUIRE_IMAGE_METADATA=1
platform_check_image() {
- return 0
+ local board="$(board_name)"
+
+ case "$board" in
+ netgear,readynas-duo-v2)
+ # let's store how rootfs is mounted
+ cp /proc/mounts /tmp/mounts
+ return 0
+ ;;
+ *)
+ return 0
+ ;;
+ esac
}
platform_do_upgrade() {