diff options
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-x | rc.d/init.d/halt | 6 |
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 |