#!/bin/sh

# send a message to all users
wall << EOF
battery is low
EOF

# cancel any already running shutdown (so we can initiate a new one)
/sbin/shutdown -c >& /dev/null

# it's time...
/sbin/shutdown -h now
