sudo mount --uuid ${DATA_DEVICE_UUID} -o uid=1000,gid=1000,umask=0022${MOUNT_PATH}||echo"Cannot mount data device with UUID ${DATA_DEVICE_UUID}!";exit1
fi
if[ ! -e "${DATA}"]
then
mkdir -p ${DATA}
fi
if[ ! -e "${DATA}/video"]
then
mkdir -p "${DATA}/video"
fi
# sort files
rm -rf "${DATA}/weekly"
mkdir -p "${DATA}/weekly"
weekly_counter=0
for i in `find ${DATA}/data/ -name "${DATE}*.jpg"`
do
seconds_unixtime=`echo"${i}"| sed 's/^.\+_\([0-9]\+\).*/\1/'`