Is there a way in Ubuntu 7.1 to set up a laptop where if it detects it's running on the battery, that it automatically shuts down? (meaning I ONLY want it to be running on its power supply).


Thanks to any replies!