src/util.c: exit(EXIT_FAILURE) instead of abort() in fatal_error*
[vlock.git] / scripts / alsa_mute.sh
blob30e3d9a4d2ece3fa64c244a0bebeda839f771c42
1 #!/bin/sh
3 set -e
5 hooks() {
6 while read hook_name ; do
7 case "${hook_name}" in
8 vlock_start)
9 amixer -q set Master mute
11 vlock_end)
12 amixer -q set Master unmute
14 esac
15 done
18 if [ $# -ne 1 ] ; then
19 echo >&2 "Usage: $0 <command>"
20 exit 1
23 case "$1" in
24 hooks)
25 hooks
27 depends)
28 echo "all"
30 esac