#!/bin/bash SPEED=16 TMP=/tmp/$(basename $0)-$$ sudo /sbin/rmmod ide-cd cdrom sudo /sbin/modprobe ide-scsi find $@ | sort | perl -nle 'chomp; print "$_\t", 2**24 - $.' > $TMP mkisofs -f -J -sort $TMP $@ \ | sudo cdrecord $CDRECORD -eject dev=0,0,0 speed=$SPEED fs=16M - rm $TMP