.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd January 28, 2009
+.Dd February 17, 2009
.Dt DHCPCD 8 SMM
.Sh NAME
.Nm dhcpcd
can be run per interface or as a single instance to manage all interfaces.
If a list of interfaces are given on the command line, then
.Nm
-only works with those interfaces.
-If no interfaces are given then
+only works with those interfaces, otherwise
.Nm
-discovers available interfaces and attempts to configure them.
+discovers available interfaces.
+If link management is enabled and none or more than one interfaces are given,
+.Nm
+forks to the background right away.
.Pp
Interfaces are preferred by carrier, DHCP lease/IPv4LL and then lowest metric.
For systems that support route metrics, each route will be tagged with the
ifc = argc - optind;
ifv = argv + optind;
+ if (ifc != 1) {
+ if (options & (DHCPCD_LINK | DHCPCD_DAEMONISE))
+ daemonise();
+ }
+
ifaces = discover_interfaces(ifc, ifv);
for (i = 0; i < ifc; i++) {
for (iface = ifaces; iface; iface = iface->next)