#!/bin/sh
#button4

# first the mixer has to be set
/usr/bin/amixer set 'Input Gain' 100%
/usr/bin/amixer set Line 95% unmute capture
/usr/bin/amixer set MIC 90% mute nocapture
/usr/bin/amixer set CD 90% mute nocapture
/usr/bin/amixer set PCM 90% mute nocapture

# look for the new file name
namenew=`/etc/tty_ctrl/look_for_name`

# store the filename in a temporary-file
echo $namenew > /tmp/record1.tmp

#start recording in Stereo
/usr/bin/arecord -S -m -w $namenew & 
