#!/bin/sh
exec 2>&1
# Network UPS Tools - driver controller
install -d -m 0770 -o nut -g nut /run/ups
upsdrvctl -D start
exec chpst -b upsdrvctl pause