Graceful shutdown.. howto?
I want my box to be able to shut down gracefully when I hit the power button and not totally die. Something like windws.
What i mean is that when i hit hte power button on my computer, it should intitiate the shutdwn procedure in linux.. i think it would be like running system('shutdown') when a power button is pressed. But how do i intercept the power button press?
Anyideas?
|