From 2375088b34cc8449b6b929b288cf63161e076e81 Mon Sep 17 00:00:00 2001 From: Carneiro Date: Mon, 9 Sep 2024 20:58:41 -0300 Subject: [PATCH] Update DEBIAN/postinst --- DEBIAN/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEBIAN/postinst b/DEBIAN/postinst index 2147deb..757a0d3 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -2,4 +2,4 @@ # Script executado pós instalação interface=$(ip -o -4 route show to default | awk '{print $5}') -systemctl enable --now wol@$interface.service \ No newline at end of file +ethtool $interface | grep Wake && systemctl enable --now wol@$interface.service \ No newline at end of file