Skip to content

Instantly share code, notes, and snippets.

@scagood
Last active October 30, 2025 23:50
Show Gist options
  • Select an option

  • Save scagood/427950961eaa1e23a86cb25557427c8a to your computer and use it in GitHub Desktop.

Select an option

Save scagood/427950961eaa1e23a86cb25557427c8a to your computer and use it in GitHub Desktop.

Execute using:

curl -Ss https://gist.githubusercontent.com/scagood/427950961eaa1e23a86cb25557427c8a/raw/systemd-networkd.sh | sudo sh

Example:

$ curl -Ss https://gist.githubusercontent.com/scagood/427950961eaa1e23a86cb25557427c8a/raw/e6e5c79d3931e7e7a88427a4e0c48fe463876c46/systemd-networkd.sh | sudo sh
[sudo: authenticate] Password: 
Writing systemd-networkd-wait-online override
#!/usr/bin/env bash
set -euo pipefail
echo "Writing systemd-networkd-wait-online override"
mkdir -p /etc/systemd/system/systemd-networkd-wait-online.service.d
cat > /etc/systemd/system/systemd-networkd-wait-online.service.d/override.conf <<EOL
[Service]
ExecStart=
ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any
EOL
systemctl daemon-reload
systemctl restart systemd-networkd-wait-online.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment