mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +00:00
fd98c8d0d9
This commit effectively reverts commitsa1c13ff
and902866cc
. There is no need for this special EC-based poweroff command. See more details in issue linked below. Fixes: https://github.com/Dasharo/dasharo-issues/issues/711 Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
19 lines
324 B
Bash
Executable File
19 lines
324 B
Bash
Executable File
#!/bin/ash
|
|
. /etc/ash_functions
|
|
|
|
TRACE "Under /bin/poweroff"
|
|
|
|
# Shut down TPM
|
|
if [ "$CONFIG_TPM" = "y" ]; then
|
|
tpmr shutdown
|
|
fi
|
|
|
|
# Sync all mounted filesystems
|
|
echo s > /proc/sysrq-trigger
|
|
|
|
# Remount all mounted filesystems in read-only mode
|
|
echo u > /proc/sysrq-trigger
|
|
|
|
# Shut off the system
|
|
echo o > /proc/sysrq-trigger
|