Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I configured /etc/dhclient-exit-hooks, in the old days, when I do dhclient eth0 like stuff, that script got executed automatically.

Now I switched to NM, the script were never called! Althrough ps clearly shows it was running.

/usr/sbin/dhclient -d -4 -sf /usr/lib/networkmanager/nm-dhcp-client.action -pf /var/run/dhclient-wlan0.pid -lf /var/lib/dhclient/dhclient-85e57415-affe-4375-921d-f2eb45bc1002-wlan0.lease -cf /var/run/nm-dhclient-wlan0.conf wlan0

Any thoughts?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

NetworkManager has its own place for hooks in /etc/NetworkManager/dispatcher.d/. Scripts in there get called whenever an interface changes state, see the NetworkManager manpage for all gory details.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.