blob: 78afaa8f1a1e6409ed5ee538357f21a328e1c4a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
PIDFILE=/tmp/statMic.pid
STATUSFILE=/tmp/dsbAMic
kill `cat $PIDFILE`
if [ $? -eq 0 ]; then
echo "Shutting down"
rm $STATUSFILE
exit
fi
echo $$ > $PIDFILE
while true; do
MIC=$(amixer get Capture | grep "Front Left:" | sed 's/.*\[\(.*\)\].*/\1/')
echo "$MIC " > $STATUSFILE
sleep 1
done
|