2 renice >/dev/null +19 -p $$
9 date --iso=seconds >$t.t
11 if grep -q '^ups.status: OL$' $t && grep -q '^battery.charge: 100$' $t;then
13 if [ ! -e $t.good ];then
22 if [ ! -e /tmp/upsc-smsed ];then
24 date --iso=seconds|mail -s "upsc-log $(hostname)" jankratochvil@vodafonemail.cz
26 if [ -e $t.good ];then
27 cat $t.good.t $t.good;echo
29 rm -f $t.good.t $t.good
31 if [ -e $t.bad ] && cmp -s $t $t.bad;then