Author SHA1 Message Date
Chris A. Bunt c0b5cdfaf6 removed legacy code
removed deprecated timesamp code
2017-06-04 21:39:41 -05:00
Chris A. Bunt 2cc6d55918 Updated methodology of timestamp entry
Updated the methodology used to generate timestamp (using $(command)
rather than `command`)
2017-06-04 21:37:34 -05:00
Chris A. Bunt b323542dd1 non-audo-cd bug fix and add timestamp to logs
Added a timestamp to each logfile (line 20) and corrected a condition
where I was getting a syntax error reported to root@localhost (email)
when a non-audio CD is inserted.
2017-06-04 20:10:14 -05:00
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -4,3 +4,4 @@ archive/
config
temp/
test.py
*.sh~
+2 -1
View File
@@ -17,6 +17,7 @@ mkdir -p "$LOGPATH"
# excludes sensative parameters
# shellcheck disable=SC2129
echo "*** Start config parameters ****" >> "$LOG"
echo -e "\tTimestamp: $(date -R)" >> "$LOG"
# shellcheck disable=SC2002
cat "$ARM_CONFIG"|sed '/^[#;].*$/d;/^$/d;/if/d;/^ /d;/^else/d;/^fi/d;/KEY=/d;/PASSWORD/d' >> "$LOG"
echo "*** End config parameters ****" >> "$LOG"
@@ -106,7 +107,7 @@ if [ "$ID_FS_TYPE" == "udf" ]; then
fi
elif (("$ID_CDROM_MEDIA_TRACK_COUNT_AUDIO" > 0 )); then
elif [ -n "$ID_CDROM_MEDIA_TRACK_COUNT_AUDIO" ]; then
echo "identified audio" >> "$LOG"
abcde -d "$DEVNAME"