diff --git a/inxi b/inxi index 91f3f1e..c6c237b 100755 --- a/inxi +++ b/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 diff --git a/inxi.changelog b/inxi.changelog index e52d307..1e5be2b 100755 --- a/inxi.changelog +++ b/inxi.changelog @@ -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