From 9b53145489b050b185daf48a0b8f690b4c0106b7 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 11 Feb 2009 18:36:48 +0000 Subject: [PATCH] Tweak for fredf errors --- inxi | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/inxi b/inxi index 8f1c8b5..043c6ca 100755 --- a/inxi +++ b/inxi @@ -2325,12 +2325,10 @@ get_partition_data() BEGIN { IGNORECASE=1 } - /\/$|\/boot$|\/var$|\/home$|\/tmp$|\/usr$/ && ! /aufs/ { - # this handles yet another fredforfaen special case where a mounted drive - # has the search string in its name - if ( $NF ~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$/ ) { - print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main" - } + # this handles yet another fredforfaen special case where a mounted drive + # has the search string in its name + $NF ~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$/ && ! /aufs/ { + print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main" } # skip all these, including the first, header line. Use the --exclude-type # to handle new filesystems types we do not want listed here