3 # Since the latest alsa in kernel 2.6.25 we now have Line-Out instead
4 # of LineOut, added check for this
6 if [ $
(amixer|
grep Line-Out |
wc -l) -gt 0 ];then
9 if [ $
(amixer|
grep LineOut |
wc -l) -gt 0 ];then
18 amixer get
$LINEOUT |
grep "Front Right: Playback"
21 amixer get
$LINEOUT|
grep -A 1 -e Mono|
grep -o -e '[0-9]*%'|
grep -o -e '[0-9]*'
24 # amixer sset LineOut unmute
25 # amixer sset iSpeaker unmute
28 # amixer sset LineOut mute
29 # amixer sset iSpeaker mute