diff --git a/DEBIAN/postinst b/DEBIAN/postinst index 8a532bb..582f583 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -1,3 +1,5 @@ #!/bin/sh # Script executado pós instalação +interface=$(ip -o -4 route show to default | awk '{print $5}') +systemctl enable --now wol@$interface.service diff --git a/lib/systemd/system/wakeonlan.service b/lib/systemd/system/wol@.service similarity index 100% rename from lib/systemd/system/wakeonlan.service rename to lib/systemd/system/wol@.service