#!/sbin/openrc-run
#Copyright2009GentooFoundation
#DistributedunderthetermsoftheGNUGeneralPublicLicensev2description='Signal the UPS to kill power in a power failure condition'depend(){
needmount-ro
}
start(){
if["$(runlevel | cut -d' ' -f2)"="0"-a-f/etc/apcupsd/powerfail]; thenebegin'Signaling UPS to kill power'/sbin/apcupsd--killpowereend$?
fi
}