summaryrefslogtreecommitdiff
path: root/src/nm-manager.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-01-30 18:01:18 +0100
committerLubomir Rintel <lkundrak@v3.sk>2018-09-18 17:40:47 +0200
commitc263f5355cbd86da75aaa161987fee8b59cb8c8b (patch)
tree656cb2e83328a09375ce34fa32ed8b852d5e4338 /src/nm-manager.c
parente03d9ad1e0c67e0ba1e3b12f213bfc963ebce196 (diff)
downloadNetworkManager-c263f5355cbd86da75aaa161987fee8b59cb8c8b.tar.gz
config: add --configure-and-quit=initrd mode
We need a mode that: * doesn't leave processes behind * doesn't force an internal dhclient * doesn't auto-generate default connections * doesn't write out files into libdir, only /run The original configure-and-quit mode doesn't really fit the initrd use. But it's proobably not a good idea to just change its behavior.
Diffstat (limited to 'src/nm-manager.c')
-rw-r--r--src/nm-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c
index 6dfbb48f87..160ec92b14 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -1632,7 +1632,7 @@ remove_device (NMManager *self,
nm_device_sys_iface_state_set (device, NM_DEVICE_SYS_IFACE_STATE_REMOVED);
nm_device_set_unmanaged_by_flags (device, NM_UNMANAGED_PLATFORM_INIT, TRUE, NM_DEVICE_STATE_REASON_REMOVED);
}
- } else if (quitting && nm_config_get_configure_and_quit (priv->config)) {
+ } else if (quitting && nm_config_get_configure_and_quit (priv->config) == NM_CONFIG_CONFIGURE_AND_QUIT_ENABLED) {
nm_device_spawn_iface_helper (device);
}
}