| 1 |
$FreeWRT$ |
| 2 |
|
| 3 |
udhcpc _seems to_ only work if the interface has already |
| 4 |
been brought up, which could be done by the ipv6 link-local |
| 5 |
mechanism but apparently isn't done |
| 6 |
|
| 7 |
submitted as http://bugs.busybox.net/view.php?id=1434 |
| 8 |
|
| 9 |
--- busybox-1.4.1/networking/ifupdown.c.orig 2007-02-12 23:30:06.000000000 +0000 |
| 10 |
+++ busybox-1.4.1/networking/ifupdown.c 2007-02-12 23:30:43.000000000 +0000 |
| 11 |
@@ -476,6 +476,10 @@ static const struct dhcp_client_t ext_dh |
| 12 |
static int dhcp_up(struct interface_defn_t *ifd, execfn *exec) |
| 13 |
{ |
| 14 |
#if ENABLE_APP_UDHCPC |
| 15 |
+#if ENABLE_FEATURE_IFUPDOWN_IP |
| 16 |
+ if (!execute("ip link set %iface% up", ifd, exec)) |
| 17 |
+ return 0; |
| 18 |
+#endif |
| 19 |
return execute("udhcpc -R -n -p /var/run/udhcpc.%iface%.pid " |
| 20 |
"-i %iface%[[ -H %hostname%]][[ -c %clientid%]][[ -s %script%]]", |
| 21 |
ifd, exec); |