/usr/share/tcos/hooks-addons/45wakeonlan is in initramfs-tools-tcos 0.89.93ubuntu2.
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 | # WAKEONLAN support
# need to copy ethtool to image
#
if [ $TCOS_WAKEONLAN ]; then
if [ -x /sbin/ethtool ]; then
cpifexists /sbin/ethtool /sbin
elif [ -x /usr/sbin/ethtool ]; then
cpifexists /usr/sbin/ethtool /sbin
else
_echo " WARNING:"
_echo " WAKEONLAN enabled but ethtool package not found !!!"
_echo " Please install ethtool or disable WAKEONLAN"
_echo ""
fi
else
_verbose "(45wakeonlan) TCOS_WAKEONLAN disabled"
fi
|