summaryrefslogtreecommitdiffstats
path: root/if-options.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-11 08:28:39 +0000
committerRoy Marples <roy@marples.name>2008-09-11 08:28:39 +0000
commit03c2c87907acec01b024d525414bd76f7d001a15 (patch)
tree41b68230e941af6e40088f8ab5ca987506a0b75e /if-options.c
parent9d94cb7804fb74fb2a6611e0e4e02ade206d38b4 (diff)
downloaddhcpcd-03c2c87907acec01b024d525414bd76f7d001a15.tar.xz
Allow quiet and nobackground to work in dhcpcd.conf
Diffstat (limited to 'if-options.c')
-rw-r--r--if-options.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/if-options.c b/if-options.c
index 1f8ff8f1..3c45b0de 100644
--- a/if-options.c
+++ b/if-options.c
@@ -257,15 +257,15 @@ parse_option(struct if_options *ifo, int opt, const char *arg)
struct in_addr addr;
switch(opt) {
- case 'b': /* FALLTHROUGH */
case 'd': /* FALLTHROUGH */
case 'k': /* FALLTHROUGH */
case 'n': /* FALLTHROUGH */
- case 'q': /* FALLTHROUGH */
case 'x': /* FALLTHROUGH */
- case 'B': /* FALLTHROUGH */
case 'T': /* We need to handle non interface options */
break;
+ case 'b':
+ ifo->options |= DHCPCD_BACKGROUND;
+ break;
case 'c':
strlcpy(ifo->script, arg, sizeof(ifo->script));
break;
@@ -326,6 +326,9 @@ parse_option(struct if_options *ifo, int opt, const char *arg)
case 'p':
ifo->options |= DHCPCD_PERSISTENT;
break;
+ case 'q':
+ ifo->options |= DHCPCD_QUIET;
+ break;
case 's':
ifo->options |= DHCPCD_INFORM;
ifo->options |= DHCPCD_PERSISTENT;
@@ -419,6 +422,9 @@ parse_option(struct if_options *ifo, int opt, const char *arg)
/* IPv4LL requires ARP */
ifo->options &= ~DHCPCD_IPV4LL;
break;
+ case 'B':
+ ifo->options &= ~DHCPCD_DAEMONISE;
+ break;
case 'C':
/* Commas to spaces for shell */
while ((p = strchr(arg, ',')))