This file is indexed.

/etc/acpi/power.sh is in acpi-support 0.142-8.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!/bin/sh

test -f /usr/share/acpi-support/key-constants || exit 0

. /usr/share/acpi-support/power-funcs
. /usr/share/acpi-support/policy-funcs

if { CheckPolicy || CheckUPowerPolicy; }; then
    exit
fi

if `cat /sys/class/power_supply/A*/online | grep -q 1`; then
	pm-powersave false
else
	pm-powersave true
fi