init: add post mount user hooks

This commit is contained in:
MilhouseVH 2018-05-07 20:48:43 +01:00
parent f918598aa9
commit 63d995fc9c

View File

@ -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