diff --git a/inxi b/inxi index defb327..b493049 100755 --- a/inxi +++ b/inxi @@ -884,7 +884,7 @@ initialize_data() else # found a case of battery existing but having nothing in it on desktop mobo # 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 + if [[ -n $( ls /proc/acpi/battery 2>/dev/null ) || -n $( ls /sys/class/power_supply/ 2>/dev/null ) ]];then B_PORTABLE='true' fi fi