NetworkManager/dispatcher
Thomas Haller a0632c529b dispatcher: silently ignore empty files
There is already a way to hide/shadow scripts in "/usr/lib/NetworkManager/dispatcher.d":
by putting a file of the same name in "/etc/NetworkManager/dispatcher.d".

There is also the special case that if the file symlinks to "/dev/null", the
file is silently ignored. This is the proper way to hide a script.

I think we should also take a plain empty file as user indication to hide a script.
This way, one can simply hide a file with

  # touch /etc/NetworkManager/dispatcher.d/10-ifcfg-rh-routes.sh

It's an alternative to symlinking to /dev/null.
2019-11-28 13:44:57 +01:00
..
tests meson: Improve dispatcher test build file 2019-10-01 09:49:33 +02:00
meson.build build/meson: cleanup configuration_data() for paths 2019-11-22 15:59:31 +01:00
nm-dispatcher-utils.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dispatcher-utils.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dispatcher.c dispatcher: silently ignore empty files 2019-11-28 13:44:57 +01:00
nm-dispatcher.conf callouts/dispatcher: rename directory callouts 2016-10-13 21:33:33 +02:00
nm-dispatcher.xml callouts/dispatcher: rename directory callouts 2016-10-13 21:33:33 +02:00
org.freedesktop.nm_dispatcher.service.in callouts/dispatcher: rename directory callouts 2016-10-13 21:33:33 +02:00