aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-11-23 14:24:10 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-11-23 14:24:10 -0200
commitbea1a0a1d0ce2bb3cfaf3441bcc91e2e02017017 (patch)
tree7864975ad4e97658e7a45f5d9cf40aec7e2c7d98
parent8056ff5e73a7efab18ec33462f32ec55e73d5b74 (diff)
downloadutils-cdrecord-bea1a0a1d0ce2bb3cfaf3441bcc91e2e02017017.tar.gz
utils-cdrecord-bea1a0a1d0ce2bb3cfaf3441bcc91e2e02017017.tar.bz2
Mass-ripper: iteration parameter
-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"