mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 23:20:34 +01:00
ifcfg-rh: warn when device will be managed due to missing HWADDR (rh #545003)
This commit is contained in:
parent
96a61a9909
commit
e0fb3125f9
1 changed files with 10 additions and 0 deletions
|
|
@ -1851,6 +1851,11 @@ make_wireless_setting (shvarFile *ifcfg,
|
|||
}
|
||||
|
||||
g_byte_array_free (array, TRUE);
|
||||
} else if (!nm_controlled) {
|
||||
/* If NM_CONTROLLED=no but there wasn't a MAC address, notify
|
||||
* the user that the device cannot be unmanaged.
|
||||
*/
|
||||
PLUGIN_WARN (IFCFG_PLUGIN_NAME, " warning: NM_CONTROLLED was false but HWADDR was missing; device will be managed");
|
||||
}
|
||||
} else {
|
||||
g_object_unref (s_wireless);
|
||||
|
|
@ -2138,6 +2143,11 @@ make_wired_setting (shvarFile *ifcfg,
|
|||
}
|
||||
|
||||
g_byte_array_free (mac, TRUE);
|
||||
} else if (!nm_controlled) {
|
||||
/* If NM_CONTROLLED=no but there wasn't a MAC address, notify
|
||||
* the user that the device cannot be unmanaged.
|
||||
*/
|
||||
PLUGIN_WARN (IFCFG_PLUGIN_NAME, " warning: NM_CONTROLLED was false but HWADDR was missing; device will be managed");
|
||||
}
|
||||
} else {
|
||||
g_object_unref (s_wired);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue