projects
/
backups
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More stuff
[backups/.git]
/
scripts
/
burn-imgs.sh
diff --git
a/scripts/burn-imgs.sh
b/scripts/burn-imgs.sh
index a6a5ba9db6ad6fce932bcaa47e0cd3982aa8b750..a3b6fb2e7de73d3560ba3ed7bcb7a48d340958a7 100755
(executable)
--- a/
scripts/burn-imgs.sh
+++ b/
scripts/burn-imgs.sh
@@
-1,11
+1,11
@@
#!/bin/sh
#!/bin/sh
-PATH=/bin:/usr/bin
+PATH=
$(dirname $0):
/bin:/usr/bin
-mailto=carl@ecbaldwin.net
-dev="/dev/hdc"
-sdev="ATA:1,0,0"
-imagedir="/backup/imgs"
+. config.sh
+
+# If the noburn file is there then don't burn.
+[ -f "$burnlockfile" ] && exit 0
# Discover disk images by looking for .img.md5sum files in $imagedir
imgmd5=$(ls $imagedir/*.img.md5sum | head -n 1)
# Discover disk images by looking for .img.md5sum files in $imagedir
imgmd5=$(ls $imagedir/*.img.md5sum | head -n 1)
@@
-44,6
+44,8
@@
fi
# Record the date in the stat file to indicate that this burn was a success
date >> $img.stat
# Record the date in the stat file to indicate that this burn was a success
date >> $img.stat
+touch $burnlockfile
+
{ # Send e-mail
echo "Image md5sum:"
cat $img.md5sum
{ # Send e-mail
echo "Image md5sum:"
cat $img.md5sum