heads/initrd/bin/poweroff

11 lines
205 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
# 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