]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/scripts/scanhd
5 /sbin
/kudzu
-qps -c HD |
egrep "desc|device:" |
awk -F': ' '{print $2}' |
sed -e '/"$/a\\' -e "s/$/\;/g" |
tr "\n" "XX" |
sed -e "s/XX/\n/g" -e "s/\;X/\;/g" > /var
/ipfire
/extrahd
/scan
8 cat /proc
/partitions |
awk '{print $4 " " $3 }' |
grep -v name |
grep -v "^[:space:]*$" | \
9 while read device size
; do
10 [ -z "${device}" ] && continue
11 echo "${device};${size};$(blkid -c /dev/null -s UUID -o value /dev/${device});"
12 done > /var
/ipfire
/extrahd
/partitions
15 echo "Usage: $0 (ide|partitions)"