From 8ef3bb6ec5bef4fbb08573171de2bb652b19b25c Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Mon, 27 Dec 2010 17:25:03 +0100 Subject: [PATCH] Ingore all special characters and only use usb-sd* as prefered name --- scripts/grml-udev-rebuildfstab | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/scripts/grml-udev-rebuildfstab b/scripts/grml-udev-rebuildfstab index 4bc5bb2..fd27022 100755 --- a/scripts/grml-udev-rebuildfstab +++ b/scripts/grml-udev-rebuildfstab @@ -141,16 +141,14 @@ break; if [ -n "$LABEL" ] && [ -n "$ID_FS_LABEL_ENC" ] ; then # see check_for_label() in scanpartitions for details case $ID_FS_LABEL_ENC in - *\ *|*\x20*) - addinfo=" # space char inside label ($ID_FS_LABEL_ENC) not supported" - break ;; - /) - addinfo=" # label '/' not supported" + *\x*) + addinfo=" # special char in label ($ID_FS_LABEL_ENC) not supported" break ;; + *) + echo "LABEL=$ID_FS_LABEL_ENC" + return + break; esac - - echo "LABEL=$ID_FS_LABEL_ENC" - return fi ;; esac @@ -159,7 +157,7 @@ esac NAME="$DEVNAME" for name in $DEVLINKS ; do case $name in - *usb*|*cdrom*|*dvd*) + *usb-sd*|*cdrom*|*dvd*) NAME="$name" break; ;; -- 2.1.4