mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 23:47:49 +00:00
busybox: mount special filesystems in init script, unmount all of this filesystem on reboot/shutdown
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
c71ea4e731
commit
f21639af3a
@ -26,10 +26,23 @@
|
|||||||
case $RUNLEVEL in
|
case $RUNLEVEL in
|
||||||
boot)
|
boot)
|
||||||
progress "mounting needed filesystems"
|
progress "mounting needed filesystems"
|
||||||
|
mount -n -t devtmpfs none /dev
|
||||||
|
mkdir -p /dev/pts
|
||||||
|
mount -n -t devpts -o gid=5,mode=620 none /dev/pts
|
||||||
|
mkdir -p /dev/shm
|
||||||
|
mount -n -t tmpfs none /dev/shm
|
||||||
|
mount -n -t tmpfs none /run
|
||||||
mount -n -t ramfs none /var
|
mount -n -t ramfs none /var
|
||||||
|
mount "$disk" /storage -o rw,noatime > /dev/null 2>&1
|
||||||
;;
|
;;
|
||||||
|
|
||||||
poweroff|reboot)
|
poweroff|reboot)
|
||||||
progress "unmounting filesystems"
|
progress "unmounting filesystems"
|
||||||
|
umount /storage
|
||||||
umount /var
|
umount /var
|
||||||
|
umount /run
|
||||||
|
umount /dev/shm
|
||||||
|
umount /dev/pts
|
||||||
|
umount /dev
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -26,16 +26,6 @@
|
|||||||
|
|
||||||
echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink
|
echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink
|
||||||
|
|
||||||
mount -n -t devtmpfs none /dev
|
|
||||||
|
|
||||||
mkdir -p /dev/pts
|
|
||||||
mount -n -t devpts -o gid=5,mode=620 none /dev/pts
|
|
||||||
|
|
||||||
mkdir -p /dev/shm
|
|
||||||
mount -n -t tmpfs none /dev/shm
|
|
||||||
|
|
||||||
mount -n -t tmpfs none /run
|
|
||||||
|
|
||||||
# showing version
|
# showing version
|
||||||
lsb_release
|
lsb_release
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user