diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2010-04-12 17:15:28 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-05-06 21:42:29 -0700 |
commit | 8413fdf95e8b0c32a8cccd25ff009d6699e4a674 (patch) | |
tree | fc9fca7762c51dcedef011c92a06770f0c871b7c | |
parent | 16a0c35e26173dcdf790840286cdebb2b7dc300d (diff) | |
download | NetworkManager-8413fdf95e8b0c32a8cccd25ff009d6699e4a674.tar.gz |
ifcfg-rh: fix setting MTU to "automatic" for wired connections (rh #569319)
ifcfg-rh plugin was not able to reset MTU to "automatic" if it had been
set to a value, for wired connection. This fix removes "MTU" variable
from the ifcfg-* file when mtu is 0.
-rw-r--r-- | system-settings/plugins/ifcfg-rh/writer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/system-settings/plugins/ifcfg-rh/writer.c b/system-settings/plugins/ifcfg-rh/writer.c index 0b9a6b2d5a..8d02e2e583 100644 --- a/system-settings/plugins/ifcfg-rh/writer.c +++ b/system-settings/plugins/ifcfg-rh/writer.c @@ -811,6 +811,7 @@ write_wired_setting (NMConnection *connection, shvarFile *ifcfg, GError **error) g_free (tmp); } + svSetValue (ifcfg, "MTU", NULL, FALSE); mtu = nm_setting_wired_get_mtu (s_wired); if (mtu) { tmp = g_strdup_printf ("%u", mtu); |