From fb7467ea5aa212577a0c3a796bca156db7f56e87 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 8 Jul 2011 18:18:59 +0000 Subject: [PATCH] improved regex detections for systme/mobo null data filters --- inxi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 712d1c1..c1e6dd7 100755 --- a/inxi +++ b/inxi @@ -3,7 +3,7 @@ #### Script Name: inxi #### version: 1.7.14 #### Date: July 6 2011 -#### Patch Number: 00 +#### Patch Number: 01 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -4232,7 +4232,11 @@ get_machine_data() gsub(/'"$BAN_LIST_NORMAL"'/, "", $0) gsub(/,/, " ", $0) # yes, there is a typo in a user data set, unknow - sub(/To Be Filled By O.E.M.|Not Available|Not Applicable|System manufacturer|System Product Name|System Version|unknown|unknow|N\/A|OEM|none/, "", $0) + # Base Board Version|Base Board Serial Number + # Chassis Manufacturer|Chassis Version|Chassis Serial Number + # System manufacturer|System Product Name|System Version + # To Be Filled By O.E.M. + sub(/^Base Board .*|^Chassis .*|.*O\.E\.M\..*|.*OEM.*|^Not .*|^System .*|.*unknow.*|.*N\/A.*|none/, "", $0) gsub(/bios|acpi/, "", $0) sub(/http:\/\/www.abit.com.tw\//, "Abit", $0) gsub(/^ +| +$/, "", $0)