Imported Upstream version 2.7.2
This commit is contained in:
parent
0121794af9
commit
a356b56d11
263 changed files with 6039 additions and 8151 deletions
|
|
@ -12,7 +12,7 @@ fi
|
|||
ups_stop () {
|
||||
pkill -n upsmon
|
||||
pkill -n upsd
|
||||
${NUT_DIR}/bin/upsdrvctl stop > /dev/null 2>&1
|
||||
${NUT_DIR}/sbin/upsdrvctl stop > /dev/null 2>&1
|
||||
}
|
||||
|
||||
ups_start () {
|
||||
|
|
@ -22,7 +22,7 @@ ups_start () {
|
|||
fi
|
||||
|
||||
if [ ! "$MODE" = "netclient" ];then
|
||||
$NUT_DIR/bin/upsdrvctl start #> /dev/null 2>&1
|
||||
$NUT_DIR/sbin/upsdrvctl start #> /dev/null 2>&1
|
||||
$NUT_DIR/sbin/upsd #> /dev/null 2>&1
|
||||
fi
|
||||
$NUT_DIR/sbin/upsmon #> /dev/null 2>&1
|
||||
|
|
@ -49,7 +49,7 @@ case $1 in
|
|||
$NUT_DIR/sbin/upsmon -K >/dev/null 2>&1
|
||||
if [ $? = 0 ]; then
|
||||
echo "Shutting down the UPS ..."
|
||||
#$NUT_DIR/bin/upsdrvctl shutdown
|
||||
#$NUT_DIR/sbin/upsdrvctl shutdown
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue