summaryrefslogtreecommitdiffstats
path: root/core/modules/etherwake/module.build
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/etherwake/module.build')
-rw-r--r--core/modules/etherwake/module.build4
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}"
}