mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 00:47:47 +00:00
New version, new tarball. A tiny, but meaningful, fix. inxi had not been updated to
test for the non deprecated battery test, /sys/class/power_supply/BAT0 existence. This resulted in failure to indicate 'portable' where applicable. I may also now add battery information where applicable since that's easy to get from /sys
This commit is contained in:
parent
b02dd68980
commit
d98a7deef6
8
inxi
8
inxi
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### Version: 2.2.34
|
||||
#### Date: 2016-02-21
|
||||
#### Version: 2.2.35
|
||||
#### Date: 2016-02-29
|
||||
#### Patch Number: 00
|
||||
########################################################################
|
||||
#### SPECIAL THANKS
|
||||
|
@ -867,8 +867,8 @@ initialize_data()
|
|||
fi
|
||||
else
|
||||
# found a case of battery existing but having nothing in it on desktop mobo
|
||||
# not all laptops show the first,
|
||||
if [[ -n $( ls /proc/acpi/battery 2>/dev/null ) ]];then
|
||||
# not all laptops show the first. /proc/acpi/battery is deprecated.
|
||||
if [[ -n $( ls /proc/acpi/battery 2>/dev/null ) || -e /sys/class/power_supply/BAT0/ ]];then
|
||||
B_PORTABLE='true'
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
=====================================================================================
|
||||
Version: 2.2.35
|
||||
Patch Version: 00
|
||||
Script Date: 2016-02-29
|
||||
-----------------------------------
|
||||
Changes:
|
||||
-----------------------------------
|
||||
New version, new tarball. A tiny, but meaningful, fix. inxi had not been updated to
|
||||
test for the non deprecated battery test, /sys/class/power_supply/BAT0 existence.
|
||||
|
||||
This resulted in failure to indicate 'portable' where applicable.
|
||||
|
||||
I may also now add battery information where applicable since that's easy to get from
|
||||
/sys
|
||||
|
||||
-----------------------------------
|
||||
-- Harald Hope - Mon, 29 Feb 2016 12:21:09 -0800
|
||||
|
||||
=====================================================================================
|
||||
Version: 2.2.34
|
||||
Patch Version: 00
|
||||
|
|
Loading…
Reference in a new issue