Fixed a hard disk percent used bug, needed to add /dev/dm-<number> to pattern

This commit is contained in:
inxi-svn 2009-02-12 05:22:12 +00:00
parent ea48c34edb
commit 82d1116006

6
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.0.0
#### version: 1.0.1
#### Date: 11 February 2009
########################################################################
#### SPECIAL THANKS
@ -1942,7 +1942,8 @@ get_hdd_data_basic()
local hdd_used=''
hdd_used=$( df | gawk '
/^\/dev\/(mapper\/|[hs]d[a-z][0-9]+)/ {
# also handles odd dm-1 type, from lvm
/^\/dev\/(mapper\/|[hs]d[a-z][0-9]+|dm[-]?[0-9]+)/ {
# this handles the case where the first item is too long
# and makes df wrap output to next line, so here we advance
# it to the next line for that single case
@ -3234,7 +3235,6 @@ print_partition_data()
else
part_dev="${a_partition_working[5]}"
dev_remote='remote'
b_is_remote='true'
fi
else
part_dev='N/A'