Репозитории ALT
S: | 3.14.14-alt3 |
5.1: | 3.14.9-alt0.M51.1 |
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 |
Другие репозитории
Upstream: | 3.14.3 |
Группа :: Система/Серверы
Пакет: apcupsd
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and 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