summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/ripperx/files/ripperx-2.6.4-wrapper')
-rw-r--r--media-sound/ripperx/files/ripperx-2.6.4-wrapper16
1 files changed, 16 insertions, 0 deletions
diff --git a/media-sound/ripperx/files/ripperx-2.6.4-wrapper b/media-sound/ripperx/files/ripperx-2.6.4-wrapper
new file mode 100644
index 000000000000..bfd0d77684c8
--- /dev/null
+++ b/media-sound/ripperx/files/ripperx-2.6.4-wrapper
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if [ $# -ne 1 ]; then
+ echo "usage: `basename $0` /dev/<cdrom>"
+ exit 1;
+fi
+
+DEV=$(echo ${1} | sed "s/\//\\\\\//g")
+
+shift
+
+/usr/bin/sed -i -r "s/^CdPlayer::Play_command = .*$/CdPlayer::Play_command = mplayer cdda:\/\/%\/${DEV}/" ${HOME}/.ripperXrc
+/usr/bin/sed -i -r "s/^CdPlayer::Stop_command = .*$/CdPlayer::Stop_command = killall mplayer/" ${HOME}/.ripperXrc
+/usr/bin/sed -i -r "s/^Ripper::Ripper = .*$/Ripper::Ripper = cdparanoia -d ${DEV}/" ${HOME}/.ripperXrc
+
+/usr/bin/ripperX ${@}