acpi and bash script!
Hey I have enables acpi on my RH9. So I want my computer to do a "shutdown -h now" when both the "reset and power" butten are pressed at the same time. Any Idea how to write bash script that does that?
Right nwo I can run any script I want when i press the power button. I can add the script to /etc/acip/events/power.conf to make it execute when the pwer button or the reset is pressed.
Or I'd like to be able to shutdown my system if the power button is pressed three times in 5 seconds. Is that possible?
Rohan
|