On 30 Aug 2006 16:06:27 -0700,
dmedhora@gmail.com
<dmedhora@gmail.com> wrote:
> Hi
> I would like to reboot/halt my system when I press the reset
> button ( beside the power button) on my computer.
>
> the other day my system went wild. I was trying to use a dvdram
> disc as a share in samba. While copying files to it, the keyboard
> suddenly
> stopped responding and the console displayed tons of messages
> real fast.
>
> I pressed the reset button as thats all I could do, and it reset power
> but I would like it to reboot. Is there an option in inittab for this?
> Something like the entry for ca:ctrlaltdel ? So that in case I
> cannot salute I can alteast reset the computer and be assured
> that the shutdown is gracefull ?
>
If ctrl-alt-del doesn't work, you can try the magic SysRq key. If you
have kernel source or a kernel-*-doc or linux-*-doc package installed,
the information should be in Documentation/sysrq.txt.gz. (Magic SysRq
has to be enabled in the kernel configuration.)
--
APL is a natural extension of assembler language programming;
....and is best for educational purposes.
-- A. Perlis