From add4263d49c8e3210f9bc0dfc44e91ec780448c7 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 8 Jun 2011 08:19:59 +0000 Subject: [PATCH] added fixes --- inxi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index 38fa5b1..aecdcb9 100755 --- a/inxi +++ b/inxi @@ -671,7 +671,8 @@ initialize_script_data() else error_handler 6 fi - if [[ -d /proc/acpi/battery ]];then + # found a case of battery existing but having nothing in it on desktop mobo + if [[ -n $( ls /proc/acpi/battery 2>/dev/null ) ]];then B_LAPTOP='true' fi if [[ -e $FILE_CPUINFO ]]; then @@ -3786,6 +3787,7 @@ get_machine_data() gsub(/'"$BAN_LIST_NORMAL"'/, "", $0) gsub(/,/, " ", $0) sub(/To Be Filled By O.E.M.|Not Available|System manufacturer|System Product Name|System Version|N\/A|OEM|none/, "", $0) + sub(/http:\/\/www.abit.co.tw\//, "Abit", $0) gsub(/^ +| +$/, "", $0) gsub(/ [ \t]+/, " ", $0) print $0