From aad4d72c080baa800ce01117d13c83a5fadc69da Mon Sep 17 00:00:00 2001 From: Pascal Dulieu Date: Thu, 7 Mar 2019 15:09:21 +0000 Subject: Rename ripdisk to ripdisc --- ripdisc | 28 ++++++++++++++++++++++++++++ ripdisk | 28 ---------------------------- 2 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 ripdisc delete mode 100644 ripdisk diff --git a/ripdisc b/ripdisc new file mode 100644 index 0000000..b5b23d3 --- /dev/null +++ b/ripdisc @@ -0,0 +1,28 @@ +#!/bin/bash +echo "Press Ctrl+C to stop the script" +eject +while : +do +echo "Please insert disc" +disc=2 +while [[ $disc != 0 ]] +do + +sudo blkid /dev/sr0 >> /dev/null +disc=$? +sleep 5 + +done + +name=$(sudo blkid /dev/sr0 | cut -d= -f3 | cut -d'"' -f2) +output=$(echo $name | sed -e 's/ /_/g') +echo "Disc Found: $name" +echo "Outputting to: $output.iso" + +# Set save path here +dd if=/dev/sr0 | pv | dd of=~/ISOs/$output.iso + +echo "Finished! Insert your next disc" +eject +sleep 10 +done diff --git a/ripdisk b/ripdisk deleted file mode 100644 index b5b23d3..0000000 --- a/ripdisk +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -echo "Press Ctrl+C to stop the script" -eject -while : -do -echo "Please insert disc" -disc=2 -while [[ $disc != 0 ]] -do - -sudo blkid /dev/sr0 >> /dev/null -disc=$? -sleep 5 - -done - -name=$(sudo blkid /dev/sr0 | cut -d= -f3 | cut -d'"' -f2) -output=$(echo $name | sed -e 's/ /_/g') -echo "Disc Found: $name" -echo "Outputting to: $output.iso" - -# Set save path here -dd if=/dev/sr0 | pv | dd of=~/ISOs/$output.iso - -echo "Finished! Insert your next disc" -eject -sleep 10 -done -- cgit v1.2.3