From 63d995fc9c5ad7d0d53836f1374e9837220c69fe Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Mon, 7 May 2018 20:48:43 +0100 Subject: [PATCH] init: add post mount user hooks --- packages/sysutils/busybox/scripts/init | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 586a353541..5659f4f20c 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -673,6 +673,10 @@ wakeonlan mount_part "$boot" "/flash" "ro,noatime" + + if [ -f /flash/post-flash.sh ] ; then + . /flash/post-flash.sh + fi } mount_storage() { @@ -703,7 +707,12 @@ disk="$target/$OVERLAY_DIR,$options" fi fi - mount_part "$disk" "/storage" "rw,noatime" + + if [ -f /flash/mount-storage.sh ] ; then + . /flash/mount-storage.sh + else + mount_part "$disk" "/storage" "rw,noatime" + fi else # /storage should always be writable mount -t tmpfs none /storage