summaryrefslogtreecommitdiff
path: root/networking/ifupdown.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-03-25 06:10:14 +0000
committerDenis Vlasenko2008-03-25 06:10:14 +0000
commitb02cea12129f1aa484701317f38466ec9e1c8462 (patch)
tree339ab0fbb538d9fe85abde71e349bba9ceebd154 /networking/ifupdown.c
parenta1acfc8f37130fd6c251f0e6f6cd3d7cb45919ff (diff)
downloadbusybox-b02cea12129f1aa484701317f38466ec9e1c8462.zip
busybox-b02cea12129f1aa484701317f38466ec9e1c8462.tar.gz
ifupdown: support for %retries% (L. Gabriel Somlo <somlo AT cmu.edu>)
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r--networking/ifupdown.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 29738c6..20bb709 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -476,7 +476,7 @@ static const struct dhcp_client_t ext_dhcp_clients[] = {
"pump -i %iface% -k",
},
{ "udhcpc",
- "udhcpc -R -n -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]]",
+ "udhcpc -R -n -p /var/run/udhcpc.%iface%.pid -i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]][[ -t %retries%]]",
"kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null",
},
};
@@ -507,7 +507,7 @@ static int dhcp_up(struct interface_defn_t *ifd, execfn *exec)
return 0;
#endif
return execute("udhcpc -R -n -p /var/run/udhcpc.%iface%.pid "
- "-i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]]",
+ "-i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]][[ -t %retries%]]",
ifd, exec);
}
#else