integrate with NetworkManager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
whereami (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: whereami
whereami 0.3.34-0.1, in Jaunty.
Steps to reproduce:
1. Install NetworkManager and whereami.
2. Use NetworkManager to bring up or reconfigure an interface.
What should happen: whereami gets run, via /etc/dhcp3/
What does happen: whereami doesn't run.
The problem it seems, is that when NetworkManager invokes dhclient, it specifies its own custom dhclient script (/usr/lib/
Since the bug against NetworkManager is tagged "wontfix", it seems that the best solution for whereami will be to provide a NetworkManager dispatch script, that calls whereami. I haven't worked out the details of this but it looks simple enough. If I create one I'll post it here.
Thanks,
Andrew.
Changed in whereami (Ubuntu): | |
status: | New → Incomplete |
status: | Incomplete → New |
Here's my NetworkManager integration script. It works for me: with this script installed as /etc/NetworkMan ager/dispatcher .d/whereami and executable, whereami now gets called whenever NM reconfigures an interface. Note a couple of issues:
* NM doesn't offer the same variety of operations and network state as dhclient-- we just get (post-)up or down, and the name of the interface.
* I'm not sure if I gave the right --hint values. Those could be adjusted.