diff options
| author | Roy Marples <roy@marples.name> | 2009-07-25 23:22:10 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-07-25 23:22:10 +0000 |
| commit | 6bfd88f1716f52b0bb22bf2df8e815ebd95fd963 (patch) | |
| tree | 7613c25566c0156e07fc5b73e3ebc28fc2e14ce3 /dhcpcd.c | |
| parent | f87d431434e6a1282a68b3de8c71a6ab825f1cc4 (diff) | |
| download | dhcpcd-6bfd88f1716f52b0bb22bf2df8e815ebd95fd963.tar.xz | |
-e, --env var=value
now pushes var=value to the environment when dhcpcd-run-hooks is run.
This allows the possibility to set env vars that hook scripts can work off.
A good example of this is 30-hostname so that force_hostname=YES can set
the hostname regardless of the current hostname.
--reconfigure now takes the short option -g.
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1468,7 +1468,7 @@ handle_args(struct fd_list *fd, int argc, char **argv) while ((opt = getopt_long(argc, argv, IF_OPTS, cf_options, &oi)) != -1) { switch (opt) { - case 'e': + case 'g': do_reconf = 1; break; case 'k': @@ -1564,12 +1564,12 @@ main(int argc, char **argv) while ((opt = getopt_long(argc, argv, IF_OPTS, cf_options, &oi)) != -1) { switch (opt) { - case 'e': - sig = SIGUSR1; - break; case 'f': cffile = optarg; break; + case 'g': + sig = SIGUSR1; + break; case 'k': sig = SIGHUP; break; |
