mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-27 00:21:08 +00:00
11 lines
205 B
Plaintext
11 lines
205 B
Plaintext
|
#!/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
|