Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ipconfig waitall > /dev/null 2>&1



On Friday, March 29, 2002, at 11:55 AM, "Peter \"Pierro' W Brewer" <email@hidden> wrote:

"Justin C. Walker" <email@hidden> wrote:


On Thursday, March 28, 2002, at 09:06 AM, "Peter \"Pierro' W Brewer"
<email@hidden> wrote:

[snip]
Can you give me a hint why you think this would be true?

ipconfig waitall > /dev/null 2>&1
ifconfig lo0 127.0.0.1 netmask 255.0.0.0 up


This comes after ipconfig waitall... making me wonder...

##
# See if the network is up now
##
CheckForNetwork

# Set HOSTNAME if needed
if [ "${HOSTNAME:=-AUTOMATIC-}" = "-AUTOMATIC-" ]; then
HOSTNAME=$(ipconfig getoption "" host_name)
if [ $? -eq 0 ]; then
hostname "${HOSTNAME}"
fi
fi

I suspect that ipconfig would have to get host_name from netinfo.

Nope; in the automatic case, it gets it from the dynamic state of configd, which in turn is fed by either BOOTP or DHCP, which is why the hostname stuff follows the 'waitall' line.

Its seems clear that netstat -r relies on lookupd...

Sounds like a non sequitur; what am I missing?

Which would tend to support the notion that ifconfig might as well.
(through syscall splicing).

Syscall splicing?

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | When LuteFisk is outlawed
| Only outlaws will have
| LuteFisk
*--------------------------------------*-------------------------------*
_______________________________________________
darwinos-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwinos-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: ipconfig waitall > /dev/null 2>&1 (From: "Peter \"Pierro' W Brewer" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.