![]()
Linux, Unix, /etc/$ To set up this Linux system, do I really have to type long,
cryptic, frequently inconsistent and undocumented commands with
occasional long strings of hex digits?
# Yeah. You got a problem with that?
|
Sponsored links (requires javascript):
#!/bin/ksh
#cd.data: Burning a data cdrom
#note: first two steps already done if you're burning an iso image
export PATH=/bin:/usr/bin:/usr/local/bin
print_usage()
{
echo 'cd.data: burn a data cd'
echo 'usage: cd.data -i [iso file] | -s [path to data file(s)]'
echo 'Make sure the bottom drawer contains a blank cd'
echo 'Provide the name of the iso file OR the name of the data files(s)'
echo 'e.g. cd.data -i isofile OR cd.data -s [file(s)]'
echo 'To delete the iso file afterwards, use "cd.burn -d"'
}
case $1 in
-h) print_usage; exit 0;;
-i) ln -s $2 ./data.iso ;;
-s) mkisofs -r -o data.iso $2 ;;
*) print_usage; exit 0;;
esac
cdrecord -eject -overburn speed=4 dev=1,3,0 -data data.iso
rm data.iso
echo "Fertig!"
exit 0