View Single Post
Old 01-17-2017, 05:42 PM   #3
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
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
encol is offline   Reply With Quote