summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-01-08 13:55:50 +0100
committerThomas Haller <thaller@redhat.com>2016-01-08 14:27:18 +0100
commitbc7ad75d991c2d9b367d5f432c43a456a7faa8db (patch)
tree5eb6c5c0f9fa2d6df3e4d8585b59ec9704bced2a /examples
parent7976edb7234eb8caf6abcf00d24627883552dd75 (diff)
downloadNetworkManager-bc7ad75d991c2d9b367d5f432c43a456a7faa8db.tar.gz
contrib/rpm: install pre-up dispatcher script "10-ifcfg-rh-routes.sh" as no-wait
The main reason to introduce the "no-wait.d" dispatcher directory was "10-ifcfg-rh-routes.sh", which (as a pre-up script) delays activation. We even extracted the script to a separate package on RHEL to avoid delays by default. Invoke the script via no-wait.d.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/dispatcher/10-ifcfg-rh-routes.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/dispatcher/10-ifcfg-rh-routes.sh b/examples/dispatcher/10-ifcfg-rh-routes.sh
index 75b8c5e5e9..59e44db517 100755
--- a/examples/dispatcher/10-ifcfg-rh-routes.sh
+++ b/examples/dispatcher/10-ifcfg-rh-routes.sh
@@ -8,6 +8,9 @@
# This should be installed in both dispatcher.d/ and
# dispatcher.d/pre-up.d/
+# pre-up scripts delay activation of the device. To reduce the delay,
+# it is adviced to install the script as symlink to no-wait.d directory.
+
if [ "$2" != "pre-up" -a "$2" != "down" ]; then
exit 0
fi