diff options
author | Simon Rettberg | 2019-02-19 18:02:09 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-19 18:02:09 +0100 |
commit | fa362b2d6777f0466559b9e5ddedf61be8c1278e (patch) | |
tree | 0fafa889dfa7c8929895a211456abc45df453061 /core/modules/etherwake/module.build | |
parent | [hardware-stats/rootfs-stage32] HI JOEY! (diff) | |
download | mltk-fa362b2d6777f0466559b9e5ddedf61be8c1278e.tar.gz mltk-fa362b2d6777f0466559b9e5ddedf61be8c1278e.tar.xz mltk-fa362b2d6777f0466559b9e5ddedf61be8c1278e.zip |
[etherwake] Enable WOL on every boot
Some systems disable WOL mode on every bootup, so explicitly enable it
again. Note that this is just a software setting, there is usually
another setting in the BIOS that completely disables WOL if desired.
Diffstat (limited to 'core/modules/etherwake/module.build')
-rw-r--r-- | core/modules/etherwake/module.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/modules/etherwake/module.build b/core/modules/etherwake/module.build index b84094ff..7012ebf1 100644 --- a/core/modules/etherwake/module.build +++ b/core/modules/etherwake/module.build @@ -8,6 +8,10 @@ build() { COPYLIST="list_dpkg_output" rm -f -- "$COPYLIST" + mkdir -p "${MODULE_BUILD_DIR}/etc/udev/rules.d" + sed "s,%ETHTOOL%,$(which ethtool)," "${MODULE_DIR}/templates/99-enable-wol.rules" > "${MODULE_BUILD_DIR}/etc/udev/rules.d/99-enable-wol.rules" \ + || perror "Cannot write udev rule to enable WOL" + list_packet_files >> "$COPYLIST" tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" } |