Is it advisable in case of such failure to start computer with a random
static IP and continue to look for DHCP server in background ?
This way the boot process will be at least continued..
Michael.
-- -----Original Message-----
-- From: Gilad Ben-Yossef [mailto:[EMAIL PROTECTED]]
-- Sent: Sunday, July 07, 2002 1:30 PM
-- To: Dan Kenigsberg
-- Cc: iglu
-- Subject: Re: run dhcpcd in the background, even when disconnected?
--
--
-- On Sun, 2002-07-07 at 13:15, Dan Kenigsberg wrote:
-- > I read from the dhcpcd manual that:
-- > dhcpcd will not fork into background until
-- > it gets a valid IP address in which case dhcpcd
-- > will return 0 to the parent process. In a case
-- > dhcpcd times out before receiving a valid IP
-- > address from DHCP server dhcpcd will return exit
-- > code 1 to the parent process.
-- >
-- > why is that? Isn't it more logical to hover around untill
-- a server IS found? any
-- > idea how to cirumvent this?
--
-- It is so because otherwise you'll only cover one specific
-- case and in
-- Unix world the writer of the program does not persume to
-- tell you how to
-- use it, he is writing a tool for you to use in whatever
-- suites you. Like
-- this for exmaple, that does what you want:
--
-- while { ! /sbin/dhcpcd; } ; do echo Retrying DHCP...; sleep 5; done
--
-- Gilad
--
-- --
-- Gilad Ben-Yossef <[EMAIL PROTECTED]>
-- Code mangler, senior coffee drinker and VP SIGSEGV
-- Qlusters ltd.
--
-- "You got an EMP device in the server room? That is so cool."
-- -- from a hackers-il thread on paranoia
--
--
--
--
-- =================================================================
-- To unsubscribe, send mail to [EMAIL PROTECTED] with
-- the word "unsubscribe" in the message body, e.g., run the command
-- echo unsubscribe | mail [EMAIL PROTECTED]
--