From 82d111600614f72d19847f122b0aeb6fa90c67fb Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 12 Feb 2009 05:22:12 +0000 Subject: [PATCH] Fixed a hard disk percent used bug, needed to add /dev/dm- to pattern --- inxi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index d147d34..79f1cf1 100755 --- a/inxi +++ b/inxi @@ -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'