Code:
#!/bin/sh
# By Rez ( + Yifan Lu )
# Let's try to use as much of Amazon's functions as we can
DIR=/mnt/us/music/record
TIME=`/bin/date +%Y%m%d%H%M%S`
mntroot rw
# if this folder doesn't exists, create it
[ ! -d ${DIR} ] && mkdir ${DIR}
# start recording in wav format
/usr/bin/amixer sset 'MIXINL PGA',0 100% unmute cap
/usr/bin/amixer sset 'Capture',0 100%,100% unmute cap
/usr/bin/arecord -f dat ${DIR}/${TIME}.wav &
I have a question:
Why in your script you mount the filesystem rw?
And why you don't restore it to ro? I think it can be dangerous