dispatcher: add an env var indicating a connection is "external"

Add CONNECTION_EXTERNAL=1 to the environment when dispatching actions
on a "generated-assumed" connection (ie, one that was created outside
of NM).
This commit is contained in:
Dan Winship
2014-12-18 09:13:57 -05:00
parent 995da9a5a6
commit 849ae9eed6
7 changed files with 66 additions and 0 deletions

View File

@@ -491,6 +491,11 @@ _dispatcher_call (DispatcherAction action,
NMD_CONNECTION_PROPS_FILENAME,
filename);
}
if (nm_settings_connection_get_nm_generated_assumed (NM_SETTINGS_CONNECTION (connection))) {
value_hash_add_bool (connection_props,
NMD_CONNECTION_PROPS_EXTERNAL,
TRUE);
}
} else {
connection_hash = value_hash_create ();
connection_props = value_hash_create ();