[Gllug] Interrupt from power button?

Chris Bell chrisbell at overview.demon.co.uk
Sun Sep 19 08:31:23 UTC 2004


On Sun 19 Sep, John Winters wrote:
> 
> One of the favourite ways to recover an XP workstation which has locked
> up is to hit the power button.  This seems to send some sort of signal
> to the OS causing it to shut down in an orderly fashion.
> 
> Is it possible to detect the same signal in Linux?  I'm thinking of
> setting up a small headless print server (using a spare Mini-ITX box)
> for very occasional use.  It would be nice if users could just hit the
> power button to turn it on and then press the same button to switch it
> off when they've finished.  Is there an entry I can make in /etc/inittab
> to have init detect this?
> 
> TIA,
> John
> 
   There are some minimal systems such as routers which will boot from a
floppy, so would it be possible to put enough on a protected floppy to run
an old box as a simple print server, perhaps with an ancient hard drive to
provide some swap space? The power switch could then be used as designed.

-- 
Chris Bell

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list