7 if [ ! `whoami` = "root" ] ; then
9 echo "You need to be root to run this shell script"
14 umount ${USB_DEV}1 2>/dev/null 1>/dev/null
15 echo "Reformat USB boot partition"
16 mkfs.vfat -F 16 -n kubuntu8 ${USB_DEV}1
17 mount ${USB_DEV}1 ${MOUNT_POINT}/kubuntu8
18 if [ $? -ne 0 ] ; then
19 echo "Mount of USB boot partition failed."
22 cd ${MOUNT_POINT}/kubuntu8
23 if [ $? -ne 0 ] ; then
24 echo "Could not cd to USB boot partition"
27 echo "Detaring boot image ..."
30 ls -l ${MOUNT_POINT}/kubuntu8
33 umount ${MOUNT_POINT}/kubuntu8