svn commit: trunk/busybox/networking
vda at busybox.net
vda at busybox.net
Mon Mar 24 23:10:18 PDT 2008
Author: vda
Date: 2008-03-24 23:10:14 -0700 (Mon, 24 Mar 2008)
New Revision: 21488
Log:
ifupdown: support for %retries% (L. Gabriel Somlo <somlo AT cmu.edu>)
Modified:
trunk/busybox/networking/ifupdown.c
Changeset:
Modified: trunk/busybox/networking/ifupdown.c
===================================================================
--- trunk/busybox/networking/ifupdown.c 2008-03-25 06:04:58 UTC (rev 21487)
+++ trunk/busybox/networking/ifupdown.c 2008-03-25 06:10:14 UTC (rev 21488)
@@ -476,7 +476,7 @@
"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 @@
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
More information about the busybox-cvs
mailing list