2008-10-08 Dan Williams <dcbw@redhat.com>
Add a 'hostname' dispatcher action triggered on hostname changes (bgo #552983) * src/NetworkManagerUtils.c - (nm_utils_call_dispatcher): add a 'hostname' action * src/NetworkManagerPolicy.c - (set_system_hostname): dispatch hostname changes * callouts/nm-dispatcher-action.c - (nm_dispatcher_action): handle 'hostname' actions git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4158 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -351,6 +351,7 @@ set_system_hostname (const char *new_hostname, const char *msg)
|
||||
__func__, FALLBACK_HOSTNAME, errno, strerror (errno));
|
||||
}
|
||||
}
|
||||
nm_utils_call_dispatcher ("hostname", NULL, NULL, NULL);
|
||||
} else {
|
||||
nm_warning ("%s: couldn't set the system hostname to '%s': (%d) %s",
|
||||
__func__, name, errno, strerror (errno));
|
||||
|
Reference in New Issue
Block a user