Ewald At 09:33 06.04.2004 +0200, Ewald Wasscher wrote: >On Fri, 2004-04-02 at 11:28, Erich Titl wrote: >> Thanks, found it and got all puzzled by the thousands of ways people find to make >> their code difficult to use. >> I admit, the sheer mention of G. Knuth in the programming/documentation method used >> for ifup/down makes one shudder with respect, but still. >> >> I need now multiple additional packages (noweb, LaTeX....) to just get the real >> source_and_documentation for a rather smallish program. Does anyone have the >> notangled source code for ifup/ifdown. > >There is an ifupdown applet in the busybox 1.0 pre-releases. It is used >in Bering-uClibc.
Thanks, I think we have to think about upgrading busybox sooner or later. Anyway, I got the sources untangled and looked at the functionality. It's not a big deal, it just parses /etc/network/interfaces and calls the respective system interfaces, for dhcp either one of pump, dhclient , dhcpcd .... you name it. It does not check much of the exit status nor does anything sensible about it. I found the culprit of my dhclient failure though and I am wondering where and how it was introduced (this is still Bering 1.2) - The dhcpd.lrp package contains a /var/lib/lrpkg/dhcpd.exclude.list file, with an entry /var/state/dhcp. - The backup script concats all /var/lib/lrpkg/*.list (except the one to backup) files into the exclude list. Therefore if I backup the dhclient package the directory /var/state/dhcp is not written to the dhclient.lrp. As a result it is not created at system startup and therefore dhclient crashes. That simple..... But the fact still holds that the status of dhclient is not handled at startup. It might be a good idea to check it for the packages which require the presence of _all_ interfaces. cheers Erich THINK P�ntenstrasse 39 8143 Stallikon mailto:[EMAIL PROTECTED] PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
