19 lines
207 B
Plaintext
19 lines
207 B
Plaintext
|
#!/bin/sh -e
|
||
|
|
||
|
# NetBSD 9.2 STABLE 2021-07
|
||
|
|
||
|
case "$1" in
|
||
|
a*)
|
||
|
audioctl -w play.gain=$2 >/dev/null
|
||
|
exit $?
|
||
|
;;
|
||
|
|
||
|
s*) # hacky
|
||
|
audioctl -a \
|
||
|
| grep "play\.gain" \
|
||
|
| cut -d '=' -f 2
|
||
|
exit $?
|
||
|
;;
|
||
|
esac
|
||
|
exit 1
|