unix/minit

waitinterface.1 in master
Repositories | Summary | Log | Files | README | COPYING

waitinterface.1 (1187B) download


 1.TH waitinterface 1
 2.SH NAME
 3waitinterface \- wait for a network interface to show up
 4.SH SYNOPSIS
 5.B waitinterface ifname command ...
 6
 7.B waitinterfaceup ifname command ...
 8.SH DESCRIPTION
 9.B waitinterface
10will wait for /sys/class/net/ifname to show up (it will try for a few
11seconds, then abort and fail if nothing shows up).
12
13If it is called under the name waitinterfaceup (make a symbolic or hard
14link at installation!), it will also wait for the interface to go up. If
15that does not happen within a few seconds, it will abort and fail.
16
17If execution gets this far, the rest of the command line is run (using
18execve, so you have to pass in the full path to the command).
19
20This program is meant for use when one command loads a network driver
21into the kernel, and the next program wants to initialize it. There is a
22race condition between the kernel module creating the network interface
23and the initialization functions attempting to initialize that
24interface. In this case you can use waitinterface to delay the
25initialization until the interface is actually there.
26
27.SH AUTHOR
28waitinterface was written by Felix von Leitner and can be downloaded from
29.I http://www.fefe.de/minit/
30