19 lines
374 B
Bash
Executable File
19 lines
374 B
Bash
Executable File
#!/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
|