From: Arne Fitzenreiter Date: Mon, 24 Sep 2012 05:59:46 +0000 (+0200) Subject: extrahd: fix grep syntax in scanhd script. X-Git-Tag: v2.13-beta1~163^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e67687f91f27714db2263fbe7520bcac0bd190f;p=ipfire-2.x.git extrahd: fix grep syntax in scanhd script. --- diff --git a/src/scripts/scanhd b/src/scripts/scanhd index f46a630735..b208bbb1d1 100644 --- a/src/scripts/scanhd +++ b/src/scripts/scanhd @@ -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});"