mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +00:00
11 lines
258 B
Plaintext
11 lines
258 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
|
||
|
|
||
|
# Immediately reboot the system, without unmounting or syncing filesystems
|
||
|
echo b > /proc/sysrq-trigger
|