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 wakeonlan
mount_part "$boot" "/flash" "ro,noatime" mount_part "$boot" "/flash" "ro,noatime"
if [ -f /flash/post-flash.sh ] ; then
. /flash/post-flash.sh
fi
} }
mount_storage() { mount_storage() {
@ -703,7 +707,12 @@
disk="$target/$OVERLAY_DIR,$options" disk="$target/$OVERLAY_DIR,$options"
fi fi
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 else
# /storage should always be writable # /storage should always be writable
mount -t tmpfs none /storage mount -t tmpfs none /storage