summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-07-25 23:22:10 +0000
committerRoy Marples <roy@marples.name>2009-07-25 23:22:10 +0000
commit6bfd88f1716f52b0bb22bf2df8e815ebd95fd963 (patch)
tree7613c25566c0156e07fc5b73e3ebc28fc2e14ce3 /dhcpcd.c
parentf87d431434e6a1282a68b3de8c71a6ab825f1cc4 (diff)
downloaddhcpcd-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 071a2c1e..f165d24f 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -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;