aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2012-01-26 10:37:27 -0800
committerDarren Hart <dvhart@linux.intel.com>2012-02-03 09:25:18 -0800
commit3a0e1fe3f78b7b03eae7bce77650a67556740223 (patch)
treed621e6eb835b6bbf79262767264fcb286258881a
parentc42364375acb28f0f23867e3a24c9ae25beced37 (diff)
downloadmeta-intel-3a0e1fe3f78b7b03eae7bce77650a67556740223.tar.gz
meta-intel-3a0e1fe3f78b7b03eae7bce77650a67556740223.tar.bz2
meta-intel-3a0e1fe3f78b7b03eae7bce77650a67556740223.zip
netbase: Add interfaces with RANDOM_MAC for sys940x* machines
These machines have no MAC in the hardware and require that it be set manually. Specify RANDOM_MAC for the eth0 interface which the genmac init script will replace with RANDOM_MAC on first boot. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rw-r--r--meta-sys940x/recipes-core/netbase/files/interfaces10
-rw-r--r--meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend3
2 files changed, 13 insertions, 0 deletions
diff --git a/meta-sys940x/recipes-core/netbase/files/interfaces b/meta-sys940x/recipes-core/netbase/files/interfaces
new file mode 100644
index 00000000..4218f5db
--- /dev/null
+++ b/meta-sys940x/recipes-core/netbase/files/interfaces
@@ -0,0 +1,10 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet dhcp
+ hwaddress ether RANDOM_MAC
diff --git a/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
new file mode 100644
index 00000000..6d3f6940
--- /dev/null
+++ b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+RDEPENDS_${PN} += "genmac"
+PRINC := "${@int(PRINC) + 1}"