1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh . "${PM_FUNCTIONS}" case "$1" in hibernate|suspend) /etc/init.d/g15daemon stop ;; thaw|resume) /etc/init.d/g15daemon start ;; *) exit $NA ;; esac