added fixes

This commit is contained in:
inxi-svn 2011-06-08 08:19:59 +00:00
parent b3ff07bbb2
commit add4263d49

4
inxi
View file

@ -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