Skip to content

Instantly share code, notes, and snippets.

@mattiasnorell
Created November 24, 2014 22:06
Show Gist options
  • Save mattiasnorell/6433ad169bdb6a2b892d to your computer and use it in GitHub Desktop.
Save mattiasnorell/6433ad169bdb6a2b892d to your computer and use it in GitHub Desktop.
#!/bin/sh
message=$SMS_1_TEXT
if test "$message" = "shutdown"; then
/sbin/shutdown -h now
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment