File: postinst

package info (click to toggle)
genpower 1.0.1-7
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 232 kB
  • ctags: 42
  • sloc: ansic: 474; sh: 159; makefile: 122
file content (21 lines) | stat: -rw-r--r-- 881 bytes parent folder | download | duplicates (2)
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