void-packages/srcpkgs/network-ups-tools/files/upsdrvctl/run

6 lines
141 B
Bash
Executable File

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