From: Denis Vlasenko Date: Tue, 25 Mar 2008 06:10:14 +0000 (-0000) Subject: ifupdown: support for %retries% (L. Gabriel Somlo ) X-Git-Tag: 1_11_0~413 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b02cea12129f1aa484701317f38466ec9e1c8462;p=oweals%2Fbusybox.git ifupdown: support for %retries% (L. Gabriel Somlo ) --- 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[] = { "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