mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
force sync at shutdown: instant action now working all the time
This commit is contained in:
parent
51bb45c9c3
commit
98c64da4cd
@ -1,19 +1,22 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Sync before all else
|
||||||
|
sync
|
||||||
|
|
||||||
|
# Notif fullscreen "Shutting down"
|
||||||
|
notif_set 0 "^^^^^^^^ SHUTTING DOWN...^^^^^^^^"
|
||||||
|
|
||||||
# Notify system, reboot in progress
|
# Notify system, reboot in progress
|
||||||
REBOOTING_FILE="/run/rebooting"
|
REBOOTING_FILE="/run/rebooting"
|
||||||
touch $REBOOTING_FILE
|
touch $REBOOTING_FILE
|
||||||
|
|
||||||
# Notif fullscreen "Shutting down"
|
|
||||||
notif_set 0 "^^^^^^^^ SHUTTING DOWN...^^^^^^^^"
|
|
||||||
|
|
||||||
# Shutdown amp
|
# Shutdown amp
|
||||||
start_audio_amp 0 >/dev/null 2>&1
|
start_audio_amp 0 >/dev/null 2>&1
|
||||||
|
|
||||||
# Force Read Only
|
# Force Read Only
|
||||||
ro
|
ro
|
||||||
|
|
||||||
# Unmount writeable partition to force
|
# Force unmount writeable partition
|
||||||
umount -r /mnt
|
umount -r /mnt
|
||||||
|
|
||||||
# Poweroff
|
# Poweroff
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user