summaryrefslogtreecommitdiff
path: root/agent/nut
blob: 2e4e76f7973887cb961167d49446f129d7403732 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if which upsc > /dev/null 2>&1 ; then
    echo '<<<nut>>>'
    for ups in $(upsc -l)
    do
	    upsc $ups| sed "s,^,$ups ,"
    done
fi

exit 0