X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=3153a72cd0fa8a98c0ab5c6be8546f8ce9ef9bc6;hp=5a9eed020ac7e8547aa531a3eaf0e97ce4182c7a;hb=f43e5f13d317ec94cea4f1b2a6e0cac90a1c5a9d;hpb=0b91f048b0edb4a0116c74b5b9656d75f7b88b9e diff --git a/grml2usb b/grml2usb index 5a9eed0..3153a72 100755 --- a/grml2usb +++ b/grml2usb @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Don Sep 13 01:38:26 CEST 2007 [mika] +# Latest change: Fre Nov 16 08:29:17 CET 2007 [mika] ################################################################################ # colors {{{ @@ -49,7 +49,7 @@ LANGUAGE='C' LC_ALL='C' PROGRAMNAME=${0##*/} - VERSION='0.7.6' + VERSION='0.7.8' ISO="$1" DEVICE="$2" @@ -184,9 +184,17 @@ copyit(){ cp ${DEVICE}/boot/isolinux/isolinux.cfg ${DEVICE}/boot/isolinux/syslinux.cfg && \ echo 'syslinux.cfg' >> $DEVICE/grml2usb.filelist fi - mv ${DEVICE}/boot/isolinux/* ${DEVICE}/ && \ - rmdir ${DEVICE}/boot/isolinux && \ - rmdir ${DEVICE}/boot/ + + if mv ${DEVICE}/boot/isolinux/* ${DEVICE}/ ; then + rmdir ${DEVICE}/boot/isolinux + fi + + if [ -d ${DEIVCE}/boot/grub ] ; then + mv ${DEVICE}/boot/grub ${DEVICE} + fi + + rmdir ${DEVICE}/boot 2>/dev/null + sync && echo "${WHITE}done${NORMAL}" else unmount