mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
Revert "busybox: mount special filesystems in init script, unmount all of this filesystem on reboot/shutdown"
This reverts commit f21639af3a.
This commit is contained in:
@@ -26,23 +26,10 @@
|
||||
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,6 +26,16 @@
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user