All pastes #333836 Raw Edit

cd-dump-x-V1

public text v1 · immutable
#333836 ·published 2007-01-31 04:32 UTC
rendered paste body
#!/bin/sh

foo1()
{
dd if=/dev/cdrom of=/home/$USER/iso/$input/$input.iso count=326239 | md5sum > /home/$USER/iso/$input/$input-md5sum & foo2 ;
}

foo2()
{
Xdialog --title "Creating image" --msgbox "please wait while image is being created" 8 45
}

Xdialog --title "Make ISO Image" \
        --inputbox "Enter file name (Without extension!)" 8 45 2> /tmp/inputfoomain.tmp.$$

retval=$?
input=`cat /tmp/inputfoomain.tmp.$$`
rm -f /tmp/inputfoomain.tmp.$$

case $retval in
  0)
	if /home/$USER/iso/ = true ; then foo1 ; else mkdir /home/$USER/iso/ & mkdir /home/$USER/iso/$input & foo1 ; fi ;;
  1)
    echo "Cancel pressed.";;
  255)
    echo "Box closed.";;
esac