View Single Post
Old 01-17-2017, 06:17 PM   #6
SKK
Addict
SKK makes transoceanic flights without the assistance of an airplaneSKK makes transoceanic flights without the assistance of an airplaneSKK makes transoceanic flights without the assistance of an airplaneSKK makes transoceanic flights without the assistance of an airplaneSKK makes transoceanic flights without the assistance of an airplaneSKK makes transoceanic flights without the assistance of an airplaneSKK makes transoceanic flights without the assistance of an airplaneSKK makes transoceanic flights without the assistance of an airplaneSKK makes transoceanic flights without the assistance of an airplaneSKK makes transoceanic flights without the assistance of an airplaneSKK makes transoceanic flights without the assistance of an airplane
 
Posts: 217
Karma: 55570
Join Date: Jun 2016
Location: N/A
Device: N/A
Quote:
Originally Posted by encol View Post
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
If I would just add mntroot ro at the end of the script would that be good enough?
SKK is offline   Reply With Quote