#!/bin/sh/usr/local/sbin/apcaccessSTATUS=`/usr/local/sbin/apcaccess -p STATUS`OK='ONLINE'if [ $STATUS != $OK ]; then echo $STATUSexit 1elseexit 0fi