mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-01 08:47:58 +00:00
5bc2bc88e4
-qemu-coreboot-*whiptail-tpm1(-hotp) boards have 'export CONFIG_DEBUG_OUTPUT=y' by default now
14 lines
251 B
Bash
Executable File
14 lines
251 B
Bash
Executable File
#!/bin/sh
|
|
. /etc/functions
|
|
|
|
DEBUG "Under /bin/poweroff"
|
|
|
|
# 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
|