#!/bin/sh
/usr/sbin/upsmon -K >/dev/null 2>&1 && /lib/nut/upsdrvctl shutdown
