Marlon, you can manually edit the /etc/init.d/networking script to call
whatever commands you like before bringing up the network interfaces.

Ugly and inelegant I know, but if the powers that be have decided for
whatever reason to nuke the nice way of doing it, it's all we're left with.

On Thu, Sep 24, 2009 at 9:39 AM, Alexander Sack <a...@ubuntu.com> wrote:

> On Tue, Sep 22, 2009 at 02:16:41PM -0000, Marlon wrote:
> > Since you are the maintainers of the distro is definitively your call on
> > doing so but it would have been nice as I said in my previous post to
> > have it documented on the release notes instead of just taking it out
> > without warning.  That said since you might be the authority of sorts on
> > this issue where should a script be run if we want it to run before the
> > network is up?  i.e. iptables reload, mac address changing as someone
> > else mentioned above, etc.
> >
>
> If we can come up with a list of issues that are most pressing we
> might check if there is a feasible way for special case solutions
> rather than allowing all kind of up.d scripts.
>
>
>  - Alexander
>
> --
> NetworkManager does not call /etc/network/if-pre-up.d scripts
> https://bugs.launchpad.net/bugs/336736
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “network-manager” package in Ubuntu: Won't Fix
>
> Bug description:
> 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
> 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 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:
>
> https://launchpad.net/ubuntu/+source/network-manager
>


-- 
Joe Duncan
PhD Program, Psychology
Queen's University
joe.rl.dun...@gmail.com
(647)216-9135

-- 
NetworkManager does not call /etc/network/if-pre-up.d scripts
https://bugs.launchpad.net/bugs/336736
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to