projects
/
backups
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
restore.sh should get out of the mounted directory if it is in there
[backups/.git]
/
scripts
/
drive.sh
diff --git
a/scripts/drive.sh
b/scripts/drive.sh
index 4ea1e54d77ef957e0b96617bd2ecfd99f32e0304..dbe6b0b7e074349605af6124c4479e5b05a47ad0 100755
(executable)
--- a/
scripts/drive.sh
+++ b/
scripts/drive.sh
@@
-1,9
+1,8
@@
#!/bin/bash
scriptsdir=$(dirname $0)
#!/bin/bash
scriptsdir=$(dirname $0)
-bindir="$scriptsdir/../build"
-export PATH=$scriptsdir:$
bindir:$
PATH
+export PATH=$scriptsdir:$PATH
# file locations and other values
today=$(date +%Y%m%d%H%M%S)
# file locations and other values
today=$(date +%Y%m%d%H%M%S)
@@
-22,7
+21,7
@@
touch $isoimage
# chmod 600 $isoimage
# Create filesystem on iso image here
# chmod 600 $isoimage
# Create filesystem on iso image here
-dd if=/dev/
zero of=$isoimage bs=2048k count
=2220
+dd if=/dev/
null of=$isoimage bs=2048k count=0 seek
=2220
mke2fs -b 2048 -F $isoimage
echo "Mounting the iso image"
mke2fs -b 2048 -F $isoimage
echo "Mounting the iso image"