Initiate wireguard after NTP success

mkdir -p /etc/hotplug.d/ntp
cat <<EOT > /etc/hotplug.d/ntp/90-wireguard
#!/bin/sh
[ \$ACTION = stratum ] && /etc/init.d/wireguard restart
EOT
4 Likes