3 # Partition the USB stick -- the stick is assumed to be at least 3GB in size
5 # First delete all existing partitions
8 if [ ! `whoami` = "root" ] ; then
10 echo "You need to be root to run this shell script"
14 if [ "x$USB_DEVICE" = "x" ] ; then
15 if [ "x$1" = "x" ] ; then
16 echo "You must supply the USB device name on the command line or in USB_DEVICE"
24 echo "This script will distroy everything on $dev"
25 echo "Answer yes to continue "
27 if [ "$a" != "yes" ] ; then
28 echo "Device $dev unchanged"