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:
Harald Hope 2016-02-29 12:23:22 -08:00
parent b02dd68980
commit d98a7deef6
2 changed files with 22 additions and 4 deletions

8
inxi
View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### Version: 2.2.34 #### Version: 2.2.35
#### Date: 2016-02-21 #### Date: 2016-02-29
#### Patch Number: 00 #### Patch Number: 00
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
@ -867,8 +867,8 @@ initialize_data()
fi fi
else else
# found a case of battery existing but having nothing in it on desktop mobo # found a case of battery existing but having nothing in it on desktop mobo
# not all laptops show the first, # not all laptops show the first. /proc/acpi/battery is deprecated.
if [[ -n $( ls /proc/acpi/battery 2>/dev/null ) ]];then if [[ -n $( ls /proc/acpi/battery 2>/dev/null ) || -e /sys/class/power_supply/BAT0/ ]];then
B_PORTABLE='true' B_PORTABLE='true'
fi fi
fi fi

View file

@ -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 Version: 2.2.34
Patch Version: 00 Patch Version: 00