mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
busybox: ensure /storage will be unmounted, dont unmount filesystems we dont need unmount
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
f21639af3a
commit
6529b6abf1
@ -38,11 +38,16 @@ case $RUNLEVEL in
|
|||||||
|
|
||||||
poweroff|reboot)
|
poweroff|reboot)
|
||||||
progress "unmounting filesystems"
|
progress "unmounting filesystems"
|
||||||
umount /storage
|
for i in 1 2 3 4 5 6 7 8 9 10; do
|
||||||
umount /var
|
echo "umount /storage"
|
||||||
umount /run
|
ERR_ENV=1
|
||||||
umount /dev/shm
|
umount /storage
|
||||||
umount /dev/pts
|
[ "$?" -eq "0" ] && ERR_ENV=0 && break
|
||||||
umount /dev
|
usleep 1000000
|
||||||
|
done
|
||||||
|
if [ "$ERR_ENV" -ne "0" ]; then
|
||||||
|
mount -o remount,ro /storage
|
||||||
|
umount -l /storage
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user