Filesystem for a shutdown-by-pulling-the-plug machine
cedric.de.wijs at softhome.net
Mon Aug 9 10:28:30 PDT 2004
On Monday 09 August 2004 12:25, Daniel K. wrote:
> 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.
Thanks! exactly what i was looking for!
The only dumb question is the one omitted
De enige domme vraag is degene die niet gesteld wordt
More information about the lfs-chat