Skip to content

Instantly share code, notes, and snippets.

@hernan43
Created November 17, 2009 12:48
Show Gist options
  • Save hernan43/236882 to your computer and use it in GitHub Desktop.
Save hernan43/236882 to your computer and use it in GitHub Desktop.
#!/bin/bash
export PSXDIR=$HOME/psx
if [ $1 -z -o $2 -n ];
then
echo "\nERROR: Invalid usage.\n"
echo "\n Usage: psxrip [filename]\n"
echo "\n where filename is the desired name, minus extensions.\n"
fi
cd /usr/bin
./cdrdao read-cd --read-raw --datafile $PSXDIR/$1.bin --device 0,0,0 --driver generic-mmc-raw $PSXDIR/$1.cue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment