extrahd: fix grep syntax in scanhd script.

This commit is contained in:
Arne Fitzenreiter
2012-09-24 07:59:46 +02:00
parent 4a8dc4556a
commit 2e67687f91

View 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});"