Drew Tomlinson wrote:
Every time there's a power outage at my home, my Gentoo box fails to
start. This is because it attempts to configure the network via DHCP
before my DHCP server has finished its startup. Thus I'm trying to
think of a way to get the Gentoo box to "wait" a few minutes if DHCP
fails on boot up. I've thought about making a simple script with the
'sleep' command and putting it in the boot runlevel but I really don't
want it to wait on every reboot. Thus it seems there must be a way to
modify the network startup script so that if DHCP fails, then it
sleeps before trying again. Then maybe after so many DHCP failures,
it finally uses a static configuration. However my scripting
knowledge is limited so if someone would point me in the right
direction, I'd really appreciate it.
Thanks,
Drew
and putting your dhcp server on a ups is out of the question?
try creating an /etc/rc.local and putting "/etc/init.d/net.eth0 start"
in it. then run it on runlevel 2 in your inittab.
--
gentoo-user@gentoo.org mailing list