X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=2c4c1b221b7ffdf889abfec46c1a95147688641c;hp=3153a72cd0fa8a98c0ab5c6be8546f8ce9ef9bc6;hb=4b90a8fde187203b9570d451e240b2bb7cb3e007;hpb=fa8ead52d6ef0ae8859a3e532d8f51474948b57f diff --git a/grml2usb b/grml2usb index 3153a72..2c4c1b2 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: Fre Nov 16 08:29:17 CET 2007 [mika] +# Latest change: Sam Jän 19 16:57:39 CET 2008 [mika] ################################################################################ # colors {{{ @@ -49,7 +49,7 @@ LANGUAGE='C' LC_ALL='C' PROGRAMNAME=${0##*/} - VERSION='0.7.8' + VERSION='0.8.0' ISO="$1" DEVICE="$2" @@ -189,8 +189,9 @@ copyit(){ rmdir ${DEVICE}/boot/isolinux fi - if [ -d ${DEIVCE}/boot/grub ] ; then - mv ${DEVICE}/boot/grub ${DEVICE} + if [ -d "${DEVICE}"/boot/grub ] ; then + [ -d "${DEVICE}/grub" ] || mkdir ${DEVICE}/grub + mv ${DEVICE}/boot/grub/* ${DEVICE}/grub/ fi rmdir ${DEVICE}/boot 2>/dev/null