summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-03-07 10:22:37 +0000
committerRoy Marples <roy@marples.name>2014-03-07 10:22:37 +0000
commitb317418153ec0ff70f76ff75d306735905b0f20e (patch)
tree413dceed7fe7aa4b0a7b1d564496df8306b4d344 /dhcpcd.c
parent7af0ae84c25bf002c5cdee3879f3a796e6452d06 (diff)
downloaddhcpcd-b317418153ec0ff70f76ff75d306735905b0f20e.tar.xz
Add -M, --master to force dhcpcd into master mode.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index f4aa4ada..bbdeba9a 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1248,7 +1248,7 @@ main(int argc, char **argv)
if (!(ctx.options & (DHCPCD_TEST | DHCPCD_DUMPLEASE))) {
/* If we have any other args, we should run as a single dhcpcd
* instance for that interface. */
- if (optind == argc - 1) {
+ if (optind == argc - 1 && !(ctx.options & DHCPCD_MASTER)) {
if (strlen(argv[optind]) > IF_NAMESIZE) {
syslog(LOG_ERR, "%s: interface name too long",
argv[optind]);