Files
alice-wol/DEBIAN/postinst
T
Carneiro fdc357b07e
Deploy Package / Explore-Gitea-Actions (push) Successful in 4s
Update DEBIAN/postinst
2024-09-09 21:33:44 -03:00

10 lines
243 B
Bash
Executable File

#!/bin/sh
set -e
interface=$(ip -o -4 route show to default | awk '{print $5}')
# Install and start the systemd service
if ! systemctl enable --now wol@$interface.service; then
echo "Warning: Failed to start your-service.service" >&2
fi