mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 05:28:08 +00:00
8da5d5d723
- modify bash to have it configured with -Os
14 lines
253 B
Bash
Executable File
14 lines
253 B
Bash
Executable File
#!/bin/bash
|
|
. /etc/functions
|
|
|
|
TRACE "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
|