Skip to contentSkip to conversation

init-ifupdown: pass udhcpc_opts to eth0 for easy configuration

PATCH New Denys Dmytriyenko 1 participant 2 messages Mar 1, 2016

lore
Share & tools
lore
#1 lore raw

PATCH 2/2 busybox: stop hardcoding default udhcpc parameters, now in interfaces file

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/recipes-core/busybox/busybox/defconfig  | 2 +-
 meta-arago-distro/recipes-core/busybox/busybox_%.bbappend | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/busybox/busybox/defconfig +1 -1
index 2f50ad2..fd41aad 100644
@@ -845,7 +845,7 @@ CONFIG_UDHCP_DEBUG=0
 # CONFIG_FEATURE_UDHCP_8021Q is not set
 CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script"
 CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
-CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -b"
+CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS=""
 CONFIG_UDPSVD=y
 CONFIG_VCONFIG=y
 CONFIG_WGET=y
meta-arago-distro/recipes-core/busybox/busybox_%.bbappend +1 -1
index 6e4e2aa..d85bfc5 100644
@@ -1,7 +1,7 @@
 # look for files in this layer first
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PR_append = "-arago18"
+PR_append = "-arago19"
 
 SRC_URI += " \
 	file://inetd \
Signature · 1 line
2.2.0
#0 lore raw

PATCH 1/2 init-ifupdown: pass udhcpc_opts to eth0 for easy configuration

From: Denys Dmytriyenko <[email protected]>

Also pre-configure few more dynamic ethX interfaces for testing.

---
 .../recipes-core/init-ifupdown/init-ifupdown/interfaces              | 5 ++++-
 .../recipes-core/init-ifupdown/init-ifupdown_%.bbappend              | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown/interfaces +4 -1
index 15bc31c..15460a4 100644
@@ -21,8 +21,12 @@ iface atml0 inet dhcp
 auto eth0
 iface eth0 inet dhcp
         pre-up /bin/grep -v -e "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline > /dev/null
+        udhcpc_opts -R -b
 
 iface eth1 inet dhcp
+iface eth2 inet dhcp
+iface eth3 inet dhcp
+iface eth4 inet dhcp
 
 # Ethernet/RNDIS gadget (g_ether)
 # ... or on host side, usbnet and random hwaddr
@@ -30,4 +34,3 @@ iface usb0 inet dhcp
 
 # Bluetooth networking
 iface bnep0 inet dhcp
-
meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown_%.bbappend +1 -1
index c0ab069..997adf2 100644
@@ -1,4 +1,4 @@
 # look for files in this layer first
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PR_append = "-arago0"
+PR_append = "-arago1"
Signature · 1 line
2.2.0