Skip to content

Commit

Permalink
Issue linrunner#163: check_tpacpi(): check presence of /proc/acpi/cal…
Browse files Browse the repository at this point in the history
…l first.

This is useful if the acpi_call module is built-in.

Credits to: Hannes von Haugwitz
  • Loading branch information
linrunner committed Oct 26, 2015
1 parent fab1b7c commit c0acb0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tlp-functions.in
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ check_tpacpi () { # check if tpacpi-bat is supported
# 127=acpi_call not installed/255=not supported
# retval: $tpacpi

if [ -z "$(modinfo acpi_call 2> /dev/null)" ]; then
if [ ! -e /proc/acpi/call ] && [ -z "$(modinfo acpi_call 2> /dev/null)" ]; then
# module not installed
tpacpi=127
else
Expand Down

0 comments on commit c0acb0a

Please sign in to comment.