#!/bin/sh

# send a message to all users
wall << EOF
power is failing... please log out as soon as you can
EOF

# initiate shutdown in some minutes
# be sure to put the command into the background so usvd continues running
/sbin/shutdown -h 10 &
