aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThan Ngo <than@redhat.com>2003-09-15 11:35:16 +0000
committerThan Ngo <than@redhat.com>2003-09-15 11:35:16 +0000
commit1c893bbe0e93dce24b7dbfb392b2964ddf73b1b7 (patch)
treec0ac47bc76938a531fe92e1b7ae9e396220e0926
parent903a904227ff876e31692054edf5e416679b2228 (diff)
downloadinitscripts-1c893bbe0e93dce24b7dbfb392b2964ddf73b1b7.tar
initscripts-1c893bbe0e93dce24b7dbfb392b2964ddf73b1b7.tar.gz
initscripts-1c893bbe0e93dce24b7dbfb392b2964ddf73b1b7.tar.bz2
initscripts-1c893bbe0e93dce24b7dbfb392b2964ddf73b1b7.tar.xz
initscripts-1c893bbe0e93dce24b7dbfb392b2964ddf73b1b7.zip
use upsdrvctl to start the shutdown process
-rwxr-xr-xrc.d/init.d/halt6
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index d7d113f5..660834db 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -194,7 +194,11 @@ fi
if [ "$command" = /sbin/halt -a -r /etc/ups/upsmon.conf -a -f /etc/killpower -a -f /etc/sysconfig/ups ] ; then
. /etc/sysconfig/ups
- [ "$SERVER" = "yes" -a "$MODEL" != "NONE" -a -n "$MODEL" -a -n "$DEVICE" ] && $MODEL $OPTIONS_HALT -k $DEVICE
+ if [ "$SERVER" = "yes" -a "$MODEL" = "upsdrvctl" ] ; then
+ /sbin/upsdrvctl shutdown
+ elif [ "$SERVER" = "yes" -a "$MODEL" != "NONE" -a -n "$MODEL" -a -n "$DEVICE" ] ; then
+ $MODEL $OPTIONS_HALT -k $DEVICE
+ fi
fi
if [ -x /sbin/halt.local ]; then