Comment 6 for bug 267891

Revision history for this message
tyler (durdon-tyler) wrote :

I've located the problem now.

When run from the command line, dhclient uses the script in /sbin/dhclient-scripts to execute the scripts located in the '/etc/dhcp3/dhclient-exit-hooks.d' and '/etc/dhcp3/dhclient-enter-hooks.d' directories.

network-manager calls dhclient with the parameter -sf LIBEXECDIR "/nm-dhcp-client.action" (translates to '/usr/lib/NetworkManager/nm-dhcp-client.action'), which does something else and the scripts are not executed.

(source code location: nm-dhcp-dhclient.c:251)

As far as I can see in the code, it is necessary for proper handling in network manager.

It would be nice to have an interface to allow enter and exit hooks for dhclient like it was possible before.