Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Development (http://www.linux-archive.org/ubuntu-development/)
-   -   NetworkManager bug / question. (http://www.linux-archive.org/ubuntu-development/270485-networkmanager-bug-question.html)

Eric 10-28-2009 04:06 AM

NetworkManager bug / question.
 
We at Team America discovered a possible known and fixed bug
with NetworkManager, it kept assigning default gw different
than that which we can clearly see in NetworkManager.

1)
We dug into it and found it was reading /etc/network/interfaces,
and ahah, there was the erroneous default router ip. We fixed
it, then /etc/init.d/NetworkManager restart and it still had the
same wrong IP, Where was it getting it from?

2)
We found a workaround article, paraphrasing, "stick a file in
/etc/network/if-up.d/ called whateva, and in that file,
route del gw
route add default gw 192.168.good.one
What? you mean we stick any file in that directory and it gets
run? Isn't that a bad Idea? it's kinda like rc scripts, but those
are organized, S98startItUp runs after S97startItFirst. How does if-up
deamon know which to run first in the 'run whateva in here' directory?

Thanks
Team AmEricA



--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel

Derek Broughton 10-28-2009 12:22 PM

NetworkManager bug / question.
 
Eric wrote:

> 2)
> We found a workaround article, paraphrasing, "stick a file in
> /etc/network/if-up.d/ called whateva, and in that file,
> route del gw
> route add default gw 192.168.good.one
> What? you mean we stick any file in that directory and it gets
> run? Isn't that a bad Idea?

Why? I hope not, because I've been using this for eons!

> it's kinda like rc scripts, but those
> are organized, S98startItUp runs after S97startItFirst. How does if-up
> deamon know which to run first in the 'run whateva in here' directory?

The same way. afaik, they both use run-parts, which runs them "in the
lexical sort order of their names".
--
derek


--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


All times are GMT. The time now is 04:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.