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
|
||||
boot)
|
||||
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 "$disk" /storage -o rw,noatime > /dev/null 2>&1
|
||||
;;
|
||||
|
||||
poweroff|reboot)
|
||||
progress "unmounting filesystems"
|
||||
umount /storage
|
||||
umount /var
|
||||
umount /run
|
||||
umount /dev/shm
|
||||
umount /dev/pts
|
||||
umount /dev
|
||||
;;
|
||||
esac
|
||||
|
@ -26,16 +26,6 @@
|
||||
|
||||
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
|
||||
lsb_release
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user