mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-24 10:35:03 +08:00
We need to enable waitip when running on a single interface to retain
compat with older dhcpcd versions.
This commit is contained in:
parent
730c69e858
commit
2f389f5282
5
dhcpcd.c
5
dhcpcd.c
@ -1770,6 +1770,11 @@ main(int argc, char **argv)
|
|||||||
ifc = argc - optind;
|
ifc = argc - optind;
|
||||||
ifv = argv + optind;
|
ifv = argv + optind;
|
||||||
|
|
||||||
|
/* When running dhcpcd against a single interface, we need to retain
|
||||||
|
* the old behaviour of waiting for an IP address */
|
||||||
|
if (ifc == 1)
|
||||||
|
options |= DHCPCD_WAITIP;
|
||||||
|
|
||||||
ifaces = discover_interfaces(ifc, ifv);
|
ifaces = discover_interfaces(ifc, ifv);
|
||||||
for (i = 0; i < ifc; i++) {
|
for (i = 0; i < ifc; i++) {
|
||||||
for (iface = ifaces; iface; iface = iface->next)
|
for (iface = ifaces; iface; iface = iface->next)
|
||||||
|
Loading…
Reference in New Issue
Block a user