[Grml] When has dhclient finished?

Michael Prokop mika at grml.org
Sat Aug 26 10:45:16 CEST 2006


* Christian Kollmann <c.kollmann at gmx.net> [20060826 10:15]:
>  Nico Golde wrote:

> >> and how can I execute some custom
> >> commands afterwards?

> > Are you executing it from the command line or via init scripts?

>  via init script, so I can???t "come back" to the commandline ;-)

The dhcp request (it's 'pump' and not dhclient) is running in
the background to speed up booting.

What you could do for example:

* execute ip-screen in your initscript and check it's output
  or use another program to check for current state of network

* grep for something like 'dhclient: DHCPACK from' in the logs

* boot using "grml nodhcp" and execute dhclient/pump on your own

The last method gives you maximum flexibility, so possibly it's a
good choice for your needs.

regards,
-mika-
-- 
You like grml?  Help us!      http://grml.org/donations/
Already on the grml-user-map? http://www.frappr.com/grmlusers
Grml Solutions                http://solutions.grml.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://ml.grml.org/pipermail/grml/attachments/20060826/4d486e23/attachment-0003.pgp>


More information about the Grml mailing list