NetworkManager/man
Thomas Haller ce9619047c dispatcher: add NM_DISPATCHER_ACTION environment variable
Previously, the action was only passed as the first command line
argument to the dispatcher scripts. Now, also set it via the
"$NM_DISPATCHER_ACTION" environment variable.

The main purpose is to have a particular, nm-dispatcher specific
variable that is always set inside the dispatcher scripts.
For example, imagine you have a script that can be either called by
dispatcher or some other means (manually, or spawned via
/etc/NetworkManager/dispatcher.d/11-dhclient).  Then it might make
sense to differenciate from inside the script whether you are called
by nm-dispatcher. But previously, there was no specific environment
variable that was always set inside the dispatcher event. For example,
with the "hostname" action there are no other environment variables.

Now (with version 1.12), you can check for `test -n "$NM_DISPATCHER_ACTION"`.
2018-06-18 14:18:08 +02:00
..
common.ent.in build: use sed instead of AC_SUBST() to generate man/common.ent 2017-02-15 18:36:24 +01:00
meson.build build: add initial support for meson build system 2017-12-13 15:48:50 +01:00
NetworkManager.conf.xml libnm-core: add ipv6.dhcp-duid property 2018-06-08 18:23:31 +02:00
NetworkManager.xml dispatcher: add NM_DISPATCHER_ACTION environment variable 2018-06-18 14:18:08 +02:00
nm-online.xml man: turn the manual page cross-references into links 2016-06-21 18:40:13 +02:00
nm-openvswitch.xml man/openvswitch: fix type in examples 2017-12-19 10:02:12 +01:00
nm-settings-ifcfg-rh.xsl man: fix evaluation of unsupported ifcfg-rh settings 2017-09-05 10:33:42 +02:00
nm-settings-keyfile.xsl man: turn the manual page cross-references into links 2016-06-21 18:40:13 +02:00
nm-settings.xsl man: clearify plain text secrets in keyfile 2017-09-28 17:56:49 +02:00
nmcli-examples.xml nmcli: add -g[et-values] option as a '-m tab -t -f <arg>' shortcut 2017-03-28 10:55:00 +02:00
nmcli.xml cli/devices: rescan the Wi-Fi network if the AP list is not fresh enough 2018-06-13 14:48:23 +02:00
nmtui.1.in man: update version number and dates in manual pages 2016-03-09 10:11:27 +01:00
nmtui.xml man: turn the manual page cross-references into links 2016-06-21 18:40:13 +02:00