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:
@@ -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 ();
|
||||
|
Reference in New Issue
Block a user