This file is indexed.

/etc/init/powernap.conf is in powernap 2.18-0ubuntu2.

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

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
29
30
31
32
33
34
35
36
# powernap

description "PowerNap"
author "Dustin Kirkland <kirkland@canonical.com>"

start on runlevel [2345]

expect daemon

pre-start script
	if [ -f /etc/default/powernap ]; then
		. /etc/default/powernap
        fi
	if [ "$START" != "yes" ]; then
		stop
		exit 0
	fi

	if [ -x /etc/powernap/ethtool-command ]; then
		# Allow for admin-customized ethtool commands here
		/etc/powernap/ethtool-command
	else
		# Otherwise, try to enable Wake-on-LAN on valid interface(s)
		for i in $(LANG=C /sbin/ifconfig | grep "encap:Ethernet" | awk '{print $1}'); do
			if /usr/sbin/ethtool $i | grep -qs "Supports Wake-on: .*g"; then
				/usr/sbin/ethtool -s $i wol g
			fi
		done
	fi
end script

pre-stop script
	powerwake-now || true
end script

exec /usr/sbin/powernapd