mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added fixes
This commit is contained in:
parent
b3ff07bbb2
commit
add4263d49
4
inxi
4
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
|
||||
|
|
Loading…
Reference in a new issue