aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmass-ripper7
1 files changed, 6 insertions, 1 deletions
diff --git a/mass-ripper b/mass-ripper
index 934b3df..0e7ceec 100755
--- a/mass-ripper
+++ b/mass-ripper
@@ -6,7 +6,7 @@
# Parameters
BASENAME="`basename $0`"
DRIVE="$1"
-ITERATION="1"
+ITERATION="$2"
INFO="0"
MOUNT="/media/cdrom"
@@ -15,6 +15,11 @@ if [ -z "$DRIVE" ]; then
DRIVE="/dev/sr0"
fi
+# Iteration
+if [ -z "$ITERATION" ]; then
+ ITERATION="1"
+fi
+
# Set sudo config
if [ "`whoami`" != 'root' ]; then
sudo="sudo"