mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
init: add post mount user hooks
This commit is contained in:
parent
f918598aa9
commit
63d995fc9c
@ -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
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user