Filesystem for a shutdown-by-pulling-the-plug machine

Daniel K. dk at
Mon Aug 9 05:25:04 PDT 2004

On 08/08/04 09:54, cedric typed onto the keyboard:

> It does. I use ext3 already, and my guess is i can just run sync, and then the 
> poweroff function in the kernel.  I know i can acces that one by 
> alt-sysreq-<a letter> but how can i access hat from s script?

You can write a character to /proc/sysrq-trigger, and the kernel will
behave as if you pressed SysRq-<character>

	echo "character" > /proc/sysrq-trigger

	echo h > /proc/sysrq-trigger
for help.

The output will show up in syslog.

Daniel K.

More information about the lfs-chat mailing list