#!/bin/bash
case $1 in
    hibernate)
        echo "Hey guy, we are going to suspend to disk!"
        ;;
    suspend)
        pulseaudio -k
        ;;
    thaw)
        echo "oh, suspend to disk is over, we are resuming..."
        ;;
    resume)
        pulseaudio -D
	/etc/init.d/g15daemon restart
	;;
    *)  echo "somebody is calling me totally wrong."
        ;;
esac
