From ab529302a7bb1dbf819a64c4a7a80fc0706c02c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Mon, 12 Apr 2010 17:15:28 +0200 Subject: [PATCH] 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. --- system-settings/plugins/ifcfg-rh/writer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/system-settings/plugins/ifcfg-rh/writer.c b/system-settings/plugins/ifcfg-rh/writer.c index 330bbf044e..74f3a59a56 100644 --- a/system-settings/plugins/ifcfg-rh/writer.c +++ b/system-settings/plugins/ifcfg-rh/writer.c @@ -807,6 +807,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);