Created
December 13, 2015 22:39
-
-
Save Mustaavalkosta/5af2c8d001273c06e40b to your computer and use it in GitHub Desktop.
/usr/lib/systemd/system-shutdown/nutshutdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/usr/bin/upsmon -K >/dev/null 2>&1 | |
if [ -f "/etc/killpower" ]; then /usr/bin/upsdrvctl shutdown; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment