15 lines
240 B
Bash
Executable File
15 lines
240 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PROGRAM=/usr/sbin/alsactl
|
|
|
|
# Exit silently if alsa-utils isn't installed
|
|
[ -x ${PROGRAM} ] || exit 0
|
|
|
|
echo -n "Saving mixer state:"
|
|
if ${PROGRAM} store > /dev/null 2> /dev/null; then
|
|
echo " done"
|
|
else
|
|
echo " failed"
|
|
exit 1
|
|
fi
|