1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#! /bin/sh -e
#
# postinst file for genpower
init=/etc/init.d/genpower
fail=/etc/init.d/powerfail
echo "- Edit $init to set cable type, port, and to enable UPS monitor."
echo "- Edit $fail to set shutdown delays for this system."
echo "- Note that genpower will not work with the smart-signalling mode supported by"
echo " most UPS systems. You will likely have to build a special cable to make use"
echo " of the UPS's dumb-signalling mode (if it has one). Information on this can"
echo " can be found in the /usr/doc/genpower directory. If you have an APC unit,"
echo " you should be able to use the 'apc-pnp' cable type with the Windows-95 PNP"
echo " (plug-n-play) cable that came with your UPS. This cable should come with"
echo " all APC Backups Pro, Smart-Ups, and Matrix-Ups systems."
update-rc.d genpower start 11 1 2 3 4 5 . >/dev/null
echo " "
$init start
|