Created
June 18, 2012 10:38
-
-
Save rriemann/2947810 to your computer and use it in GitHub Desktop.
handle suspend for g15daemon
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/lib/pm-utils/sleep.d/20g15daemon | |
. "${PM_FUNCTIONS}" | |
case "$1" in | |
hibernate|suspend) | |
printf 'G15 daemon will be stopped now...' | |
/etc/init.d/g15daemon stop | |
;; | |
thaw|resume) | |
printf 'G15 daemon will be resumed now...' | |
/etc/init.d/g15daemon start | |
;; | |
*) exit $NA | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment