Ubuntu 8.10, Linux 2.6.27-12-generic #1 SMP Thu Feb 5 09:26:35 UTC 2009 i686 GNU/Linux
NetworkManager 0.7~~svn20081018t105859-0ubuntu1.8.10.1
I've been trying to get a script to trigger on the "pre-up" phase of network configuration, however, NetworkManager doesn't seem to call it's dispatcher for "pre-up" or "post-down" events.
None of the scripts I put in /etc/network/if-pre-up.d or ever got called, so I added the following line to the top of the dispatcher script "/etc/NetworkManager/dispatcher.d/01ifupdown":
logger -t $0 "called with $1 $2"
Where $0 is the name of the script, $1 is the network interface and $2 is the network event.
After bringing some network connections up and down, I checked the logs, and NetworkManager doesn't seem to be calling "/etc/NetworkManager/dispatch.d/01ifupdown" for either "pre-up" or "post-down" events. The only entries that show up are for "up" and "down" events.
According to the changelog both "pre-up" and "post-down" events are supposed to be supported as of version 0.5.1-0ubuntu12:
Binary package hint: network-manager
Ubuntu 8.10, Linux 2.6.27-12-generic #1 SMP Thu Feb 5 09:26:35 UTC 2009 i686 GNU/Linux 8t105859- 0ubuntu1. 8.10.1
NetworkManager 0.7~~svn2008101
I've been trying to get a script to trigger on the "pre-up" phase of network configuration, however, NetworkManager doesn't seem to call it's dispatcher for "pre-up" or "post-down" events.
None of the scripts I put in /etc/network/ if-pre- up.d or ever got called, so I added the following line to the top of the dispatcher script "/etc/NetworkMa nager/dispatche r.d/01ifupdown" :
logger -t $0 "called with $1 $2"
Where $0 is the name of the script, $1 is the network interface and $2 is the network event.
After bringing some network connections up and down, I checked the logs, and NetworkManager doesn't seem to be calling "/etc/NetworkMa nager/dispatch. d/01ifupdown" for either "pre-up" or "post-down" events. The only entries that show up are for "up" and "down" events.
According to the changelog both "pre-up" and "post-down" events are supposed to be supported as of version 0.5.1-0ubuntu12:
https:/ /launchpad. net/ubuntu/ +source/ network- manager