Automatic shutdown compliant OS
Operating on Linux
The shutdown software for Linux can use "genpower."

This software is not supported. Therefore, the user is requested to kindly use it at user's responsibility.

Click here for relevant information.
http://www.ibiblio.org/pub/Linux/system/ups/!INDEX.short.html