mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-22 14:22:26 +00:00
0897a20b84
Should close #223 Added reboot and poweroff scripts using /proc/sysrq-trigger Also cleaned up the boot loop in generic-init
11 lines
205 B
Bash
Executable File
11 lines
205 B
Bash
Executable File
#!/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
|