2006-08-17 Robert Love <rml@novell.com>

* src/backends/NetworkManagerSuSE.c: Do not restart ypbind; our ypbind
	  package is now DBUS-enabled and listens for the NM signals.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1969 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Robert Love
2006-08-17 16:10:28 +00:00
committed by Robert Love
parent 72428f6e7a
commit bd9d434c63
2 changed files with 5 additions and 40 deletions

View File

@@ -1,3 +1,8 @@
2006-08-17 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: Do not restart ypbind; our ypbind
package is now DBUS-enabled and listens for the NM signals.
2006-08-14 Dan Williams <dcbw@redhat.com>
* Patch from Christian Persch <chpe gnome org>

View File

@@ -1000,11 +1000,6 @@ void nm_system_activate_nis (NMIP4Config *config)
} else
nm_warning ("Could not commit NIS changes to /etc/yp.conf.");
if (stat ("/usr/sbin/rcypbind", &sb) != -1)
{
nm_info ("Restarting ypbind.");
nm_spawn_process ("/usr/sbin/rcypbind reload");
}
if (stat ("/usr/sbin/rcautofs", &sb) != -1)
{
nm_info ("Restarting autofs.");
@@ -1029,41 +1024,6 @@ out_gfree:
*/
void nm_system_shutdown_nis (void)
{
#if 0 /* XXX: let's not touch NIS, for now; probably need to make this a configurable option */
char *name, *buf = NULL;
shvarFile *file;
name = g_strdup_printf (SYSCONFDIR"/sysconfig/network/dhcp");
file = svNewFile (name);
if (!file)
goto out_gfree;
buf = svGetValue (file, "DHCLIENT_MODIFY_NIS_CONF");
if (!buf)
goto out_close;
if (!strcmp (buf, "yes")) {
struct stat sb;
if (stat ("/usr/sbin/rcypbind", &sb) != -1)
{
nm_info ("Stopping ypbind.");
nm_spawn_process ("/usr/sbin/rcypbind stop");
}
if (stat ("/usr/sbin/rcautofs", &sb) != -1)
{
nm_info ("Restarting autofs.");
nm_spawn_process ("/usr/sbin/rcautofs restart");
}
}
free (buf);
out_close:
svCloseFile (file);
out_gfree:
g_free (name);
#endif
}