]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
extrahd: fix grep syntax in scanhd script.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 24 Sep 2012 05:59:46 +0000 (07:59 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 24 Sep 2012 05:59:46 +0000 (07:59 +0200)
src/scripts/scanhd

index f46a630735aaf6f4ad3768794fa77db771b387dd..b208bbb1d1ab5f145774fbd638faeebf7d92e607 100644 (file)
@@ -11,7 +11,7 @@ case "$1" in
                done
                ;;
        partitions)
-               cat /proc/partitions | awk '{print $4 " " $3 }' | grep -v name | grep -v "^[:space:]*$" | \
+               cat /proc/partitions | awk '{print $4 " " $3 }' | grep -v name | grep -v "^[[:space:]]*$" | \
                        while read device size; do
                                [ -z "${device}" ] && continue
                                echo "${device};${size};$(blkid -c /dev/null -s UUID -o value /dev/${device});"