Merge remote-tracking branch 'origin/master' into staging
[mirror/dsa-puppet.git] / modules / stretch / files / ifupdown-wait-online.service
diff --git a/modules/stretch/files/ifupdown-wait-online.service b/modules/stretch/files/ifupdown-wait-online.service
new file mode 100644 (file)
index 0000000..2474250
--- /dev/null
@@ -0,0 +1,14 @@
+# from busters's ifupdown 0.8.32 package (as of May 2018)
+[Unit]
+Description=Wait for network to be configured by ifupdown
+DefaultDependencies=no
+Before=network-online.target
+ConditionFileIsExecutable=/sbin/ifup
+
+[Service]
+Type=oneshot
+ExecStart=/lib/ifupdown/wait-online.sh
+RemainAfterExit=yes
+
+[Install]
+WantedBy=network-online.target