Created
March 22, 2012 15:21
-
-
Save nckltcha/2158985 to your computer and use it in GitHub Desktop.
Script to send Prowl Notificatio when system starts up or shuts down
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 | |
| case "$1" in | |
| start) | |
| wget --post-data 'apikey=XXXXX&application=DiskStation&event=System&description=DiskStation Starting Up' -O - http://api.prowlapp.com/publicapi/add | |
| ;; | |
| stop) | |
| wget --post-data 'apikey=XXXXX&application=DiskStation&event=System&description=DiskStation Shutting Down' -O - http://api.prowlapp.com/publicapi/add | |
| ;; | |
| esac | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment