summaryrefslogtreecommitdiff
path: root/system/apcupsd/doinst.sh
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-11 22:26:19 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:26:19 +0200
commit21dba75362eda35fe6c706d68262e521dd2f91c1 (patch)
tree5ee1324ed3a38ca8a26f7cd97551e5c4b595d497 /system/apcupsd/doinst.sh
parent91ba3afda8a427d68e25738ca649abb38a8dfe3f (diff)
downloadslackbuilds-21dba75362eda35fe6c706d68262e521dd2f91c1.tar.gz
system/apcupsd: Updated for version 3.14.4
Diffstat (limited to 'system/apcupsd/doinst.sh')
-rw-r--r--system/apcupsd/doinst.sh31
1 files changed, 12 insertions, 19 deletions
diff --git a/system/apcupsd/doinst.sh b/system/apcupsd/doinst.sh
index 066579eb4b..797750001b 100644
--- a/system/apcupsd/doinst.sh
+++ b/system/apcupsd/doinst.sh
@@ -1,3 +1,5 @@
+#!/bin/sh
+
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
@@ -11,25 +13,6 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
-for i in \
- apccontrol.new \
- apcupsd.conf.new \
- apcupsd.css.new \
- changeme.new \
- commfailure.new \
- commok.new \
- hosts.conf.new \
- multimon.cgi.new \
- multimon.conf.new \
- offbattery.new \
- onbattery.new \
- upsfstats.cgi.new \
- upsimage.cgi.new \
- upsstats.cgi.new;
-do \
- config etc/apcupsd/$i;
-done
-
# Keep same perms on rc.apcupsd.new:
if [ -e etc/rc.d/rc.apcupsd ]; then
cp -a etc/rc.d/rc.apcupsd etc/rc.d/rc.apcupsd.new.incoming
@@ -38,4 +21,14 @@ if [ -e etc/rc.d/rc.apcupsd ]; then
fi
config etc/rc.d/rc.apcupsd.new
+config etc/apcupsd/apccontrol.new
+config etc/apcupsd/apcupsd.conf.new
+config etc/apcupsd/apcupsd.css.new
+config etc/apcupsd/changeme.new
+config etc/apcupsd/commfailure.new
+config etc/apcupsd/commok.new
+config etc/apcupsd/hosts.conf.new
+config etc/apcupsd/multimon.conf.new
+config etc/apcupsd/offbattery.new
+config etc/apcupsd/onbattery.new