This file is indexed.

/etc/cobbler/power/power_ether_wake.template is in maas-provision-common 2.2.2-0ubuntu4.

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
#if $power_address is None or $power_address == ""
    #set $power_address = "%s" % $mac_address_eth0
#end if
if [ -x /sbin/ether-wake ]; then
	/sbin/ether-wake -i eth0 "$power_address"
elif [ -x /usr/bin/powerwake ]; then
	/usr/bin/powerwake "$power_address"
elif [ -x /usr/bin/wakeonlan ]; then
	/usr/bin/wakeonlan "$power_address"
elif [ -x /usr/sbin/etherwake ]; then
	/usr/sbin/etherwake "$power_address"
fi