Skip to content

Instantly share code, notes, and snippets.

@rriemann
Created June 18, 2012 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rriemann/2947810 to your computer and use it in GitHub Desktop.
Save rriemann/2947810 to your computer and use it in GitHub Desktop.
handle suspend for g15daemon
#!/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