{
struct if_options *ifo;
struct interface *iface;
- int opt, oi = 0, signal_fd, sig = 0, i, control_fd, wflag = 0;
+ int opt, oi = 0, signal_fd, sig = 0, i, control_fd;
size_t len;
pid_t pid;
struct timespec ts;
case 'n':
sig = SIGALRM;
break;
- case 'w':
- wflag = 1;
- break;
case 'x':
sig = SIGTERM;
break;
options |= DHCPCD_TEST | DHCPCD_PERSISTENT;
options &= ~DHCPCD_DAEMONISE;
}
- if (wflag != 0)
- options |= DHCPCD_WAITIP;
#ifdef THERE_IS_NO_FORK
options &= ~DHCPCD_DAEMONISE;
case 'f': /* FALLTHROUGH */
case 'g': /* FALLTHROUGH */
case 'n': /* FALLTHROUGH */
- case 'w': /* FALLTHROUGH */
case 'x': /* FALLTHROUGH */
case 'T': /* We need to handle non interface options */
break;
ifo->vendor[0] += s + 2;
}
break;
+ case 'w':
+ ifo->options |= DHCPCD_WAITIP;
+ break;
case 'y':
ifo->reboot = atoint(arg);
if (ifo->reboot < 0) {