only works with those interfaces, otherwise
.Nm
discovers available interfaces.
-If link management is enabled and none or more than one interfaces are given,
+If link management is enabled and no interfaces are given on the command line,
.Nm
forks to the background right away.
.Pp
ifc = argc - optind;
ifv = argv + optind;
- if (ifc != 1) {
- if (options & (DHCPCD_LINK | DHCPCD_DAEMONISE))
- daemonise();
- }
+ if (ifc == 0 && options & (DHCPCD_LINK | DHCPCD_DAEMONISE))
+ daemonise();
ifaces = discover_interfaces(ifc, ifv);
for (i = 0; i < ifc; i++) {