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