This file is indexed.

/usr/share/laptop-mode-tools/module-helpers/pm-helper is in laptop-mode-tools 1.64-1ubuntu1.

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
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh


MEM=0;
DISK=0;

target=`basename $0 | cut -d '-' -f2`


case "$target" in
	suspend) MEM=1 ;;
	hibernate) DISK=1 ;;
	*) echo "Unrecognized command"
		 exit 1 ;;
esac
	
# Sync buffers first.
sync;

# Freezer on preference
if [ x$MEM = x1 ]; then
	echo "mem" > /sys/power/state
elif [ x$DISK = x1 ]; then
	echo "disk" > /sys/power/state
else
	## Nothing to do.
	echo ;
fi