generated from alice-meta-packages/alice-meta-template
This commit is contained in:
1 parent
685a3035cb
commit
fdc357b07e
1 file changed
+6
-3
+6
-3
@@ -1,7 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set +e
|
||||
set -e
|
||||
|
||||
# Script executado pós instalação
|
||||
interface=$(ip -o -4 route show to default | awk '{print $5}')
|
||||
systemctl enable --now wol@$interface.service
|
||||
|
||||
# Install and start the systemd service
|
||||
if ! systemctl enable --now wol@$interface.service; then
|
||||
echo "Warning: Failed to start your-service.service" >&2
|
||||
fi
|
||||
Reference in new issue
Block a user