diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-25 06:10:14 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-25 06:10:14 +0000 |
commit | b02cea12129f1aa484701317f38466ec9e1c8462 (patch) | |
tree | 339ab0fbb538d9fe85abde71e349bba9ceebd154 | |
parent | a1acfc8f37130fd6c251f0e6f6cd3d7cb45919ff (diff) | |
download | busybox-w32-b02cea12129f1aa484701317f38466ec9e1c8462.tar.gz busybox-w32-b02cea12129f1aa484701317f38466ec9e1c8462.tar.bz2 busybox-w32-b02cea12129f1aa484701317f38466ec9e1c8462.zip |
ifupdown: support for %retries% (L. Gabriel Somlo <somlo AT cmu.edu>)
-rw-r--r-- | networking/ifupdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 29738c6d0..20bb709ce 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -476,7 +476,7 @@ static const struct dhcp_client_t ext_dhcp_clients[] = { | |||
476 | "pump -i %iface% -k", | 476 | "pump -i %iface% -k", |
477 | }, | 477 | }, |
478 | { "udhcpc", | 478 | { "udhcpc", |
479 | "udhcpc -R -n -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]]", | 479 | "udhcpc -R -n -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]][[ -t %retries%]]", |
480 | "kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", | 480 | "kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", |
481 | }, | 481 | }, |
482 | }; | 482 | }; |
@@ -507,7 +507,7 @@ static int dhcp_up(struct interface_defn_t *ifd, execfn *exec) | |||
507 | return 0; | 507 | return 0; |
508 | #endif | 508 | #endif |
509 | return execute("udhcpc -R -n -p /var/run/udhcpc.%iface%.pid " | 509 | return execute("udhcpc -R -n -p /var/run/udhcpc.%iface%.pid " |
510 | "-i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]]", | 510 | "-i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]][[ -t %retries%]]", |
511 | ifd, exec); | 511 | ifd, exec); |
512 | } | 512 | } |
513 | #else | 513 | #else |