ALT Linux repositórios
S: | 3.14.14-alt3 |
5.0: | 3.14.4-alt5 |
4.1: | 3.14.8-alt0.M41.1 |
4.0: | 3.14.3-alt0.M40.1 |
3.0: | 3.10.17-alt1 |
+updates: | 3.10.18-alt0.C30.1 |
Outros repositórios
Upstream: | 3.14.3 |
Group :: Sistema/Servidores
RPM: apcupsd
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
#!/bin/sh
# check for APC UPS with delayed shutdown
# return 0 if no delay and delay time if exist
UPSLIST="SMART-UPS"
COUNT=`/usr/sbin/apcaccess|/bin/egrep -i -e "$UPSLIST"|wc -l`
if [ $[ $COUNT > 0 ] == 1 ]; then
DELAY=`/usr/sbin/apcaccess|/bin/grep DSHUTD|/bin/sed -e "s/.*: 0*\([0-9]*\) .*/\1/"`
else
DELAY=0
fi
echo $DELAY
exit $DELAY