Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
2376 1223 500
xmw.de
CDROM - Prepare, MTBF is coming!
pandora ~ # cat /usr/local/sbin/mwpcd-playback.sh
#!/bin/zsh

echo 0 > /proc/sys/dev/cdrom/autoclose
echo 1 > /proc/sys/dev/cdrom/autoeject

DRIVE=$1
DEST=$2
setopt -e -x

[ -e $DRIVE ]
[ -e $DEST ]
eject -t $DRIVE
sleep 12
mount $DRIVE
ID=$(< $1/mwpcd_id)
[ ! -e $DEST/$ID ]
echo reading $ID
rsync -av --progress $DRIVE/ $DEST/$ID
umount $DRIVE
echo finished $ID
pandora ~ # while zenity --question --text="Insert next CD?"; do
    time mwpcd-playback.sh /mnt/cdrom1 /home/images/mwpcd ; done
Tags: own linux
Reposted byjv6 jv6

Don't be the product, buy the product!

Schweinderl