#!/bin/sh # # genpowerfail.sh This script is run when the UPS tells the system # the power has gone. Tell everybody, ans start the # shutdown based on the failure type. # This script is also being run when the power comes # up again (if it does in time!) # # Version: /etc/genpowerfail 1.0.1 # /etc/init.d/genpowerfail.sh 1.0.2 # # Author: Tom Webster # # # Modification: # 2002/03/28 by Tiger Fu