X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=9e94b26d162104983bf32c9a6a65d5a839aef6c9;hp=c4778ba7d89c83db2cff186e19291857337f6952;hb=ae7d2eaecc1da99f0aad38e2ed6101744f4c0b68;hpb=7254c524a4ceda57503c1ee1ad64e927538602bc diff --git a/grml2usb b/grml2usb index c4778ba..9e94b26 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: Sun Feb 24 13:49:13 CET 2008 [mika] +# Latest change: Sun May 25 01:29:21 CEST 2008 [mika] ################################################################################ # colors {{{ @@ -110,7 +110,7 @@ info(){ vfat_warning(){ DEV=$(echo ${DEVICE%/}) - TMPDEV=$(grep ${DEV} /etc/fstab | awk '{print $1}') + TMPDEV=$(grep "[[:space:]]${DEV}[[:space:]]" /etc/fstab | grep -vh '^[[:space:]]*#' | awk '{print $1}') SYSDEV=$(echo ${TMPDEV%/}) if [ -x /lib/udev/vol_id ] ; then /lib/udev/vol_id $SYSDEV | grep -q 'FS_TYPE=vfat' || VFAT=1 @@ -227,7 +227,7 @@ copyit(){ run_syslinux(){ DEV=$(echo ${DEVICE%/}) - TMPDEV=$(grep ${DEV} /etc/fstab | awk '{print $1}') + TMPDEV=$(grep "[[:space:]]${DEV}[[:space:]]" /etc/fstab | grep -vh '^[[:space:]]*#' | awk '{print $1}') SYSDEV=$(echo ${TMPDEV%/}) echo -n "Running syslinux on ${SYSDEV}: " debugit "debug: syslinux ${SYSDEV}"