summaryrefslogtreecommitdiffstats
path: root/source/a/genpower/genpower.var.diff
blob: fa3c9e9986a6e1b04fb8fa9beaa5b2e3717f2943 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- ./genpowerfail.orig	Wed Apr 10 18:25:07 2002
+++ ./genpowerfail	Wed Apr 10 19:14:27 2002
@@ -6,19 +6,19 @@
 #		This script is also being run when the power comes
 #		up again (if it does in time!)
 #
-# Version:	/etc/genpowerfail 1.0.1
+# Version:	/sbin/genpowerfail 1.0.1
 #
 # Author:	Tom Webster <webster@kaiwan.com>
 #
 
 # Set the path.
-PATH=/sbin:/etc:/bin:/usr/bin
+PATH=/sbin:/bin:/usr/bin:/usr/sbin
 
 # Set location of upsstatus file
 statpath="/etc/upsstatus"
 
 # Set location of file containing PID of running shutdowns
-spidpath="/etc/shutdownpid"
+spidpath="/var/run/shutdownpid"
 
 # See what happened.
 case "$1" in
@@ -63,7 +63,7 @@
 		shutdown -c "THE POWER IS BACK"
 		;;
   	*)
-		echo "Usage: /etc/genpowerfail {start|stop}"
+		echo "Usage: /sbin/genpowerfail {start|stop}"
 		exit 1
 		;;
   esac