1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Drew Tomlinson wrote: |
5 |
> Every time there's a power outage at my home, my Gentoo box fails to |
6 |
> start. This is because it attempts to configure the network via DHCP |
7 |
> before my DHCP server has finished its startup. Thus I'm trying to |
8 |
> think of a way to get the Gentoo box to "wait" a few minutes if DHCP |
9 |
> fails on boot up. I've thought about making a simple script with the |
10 |
> 'sleep' command and putting it in the boot runlevel but I really don't |
11 |
> want it to wait on every reboot. Thus it seems there must be a way to |
12 |
> modify the network startup script so that if DHCP fails, then it sleeps |
13 |
> before trying again. Then maybe after so many DHCP failures, it finally |
14 |
> uses a static configuration. However my scripting knowledge is limited |
15 |
> so if someone would point me in the right direction, I'd really |
16 |
> appreciate it. |
17 |
> |
18 |
> Thanks, |
19 |
> |
20 |
> Drew |
21 |
> |
22 |
|
23 |
You want ifplugd. |
24 |
|
25 |
It will allow you to boot the machine even if there is not DHCP response |
26 |
and then do the appropriate action when the DHCP server comes back up. |
27 |
Try that out, maybe it will suit your needs. |
28 |
|
29 |
- -- |
30 |
Jeremy Olexa |
31 |
(olexa@××××××.edu) |
32 |
Office: EE/CS 1-201 |
33 |
CS/IT Systems Staff |
34 |
University of Minnesota |
35 |
|
36 |
-----BEGIN PGP SIGNATURE----- |
37 |
Version: GnuPG v1.2.5 (GNU/Linux) |
38 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
39 |
|
40 |
iD8DBQFEZL4CFN7pD9kMi/URAs5KAJ9Gw+ITUea2jV7Y6Dyu7ItN4RTbVACeNrQX |
41 |
V1+AGvCWpLaZUgVDUK3PNkI= |
42 |
=e5Fn |
43 |
-----END PGP SIGNATURE----- |
44 |
-- |
45 |
gentoo-user@g.o mailing list |