repo.or.cz
/
vlock.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
src/util.c: exit(EXIT_FAILURE) instead of abort() in fatal_error*
[vlock.git]
/
scripts
/
alsa_mute.sh
blob
30e3d9a4d2ece3fa64c244a0bebeda839f771c42
1
#!/bin/sh
2
3
set -e
4
5
hooks
() {
6
while
read
hook_name
;
do
7
case
"
${hook_name}
"
in
8
vlock_start
)
9
amixer
-q set
Master mute
10
;;
11
vlock_end
)
12
amixer
-q set
Master unmute
13
;;
14
esac
15
done
16
}
17
18
if
[
$#
-ne
1
] ;
then
19
echo
>&
2
"Usage:
$0
<command>"
20
exit
1
21
fi
22
23
case
"
$1
"
in
24
hooks
)
25
hooks
26
;;
27
depends
)
28
echo
"all"
29
;;
30
esac