summaryrefslogtreecommitdiffstats
path: root/meta-sys940x
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2012-01-26 18:37:27 (GMT)
committerDarren Hart <dvhart@linux.intel.com>2012-02-03 17:25:18 (GMT)
commit3a0e1fe3f78b7b03eae7bce77650a67556740223 (patch)
treed621e6eb835b6bbf79262767264fcb286258881a /meta-sys940x
parentc42364375acb28f0f23867e3a24c9ae25beced37 (diff)
downloadmeta-intel-3a0e1fe3f78b7b03eae7bce77650a67556740223.tar.gz
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>
Diffstat (limited to 'meta-sys940x')
-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 0000000..4218f5d
--- /dev/null
+++ b/meta-sys940x/recipes-core/netbase/files/interfaces
@@ -0,0 +1,10 @@
1# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
2
3# The loopback interface
4auto lo
5iface lo inet loopback
6
7# Wired or wireless interfaces
8auto eth0
9iface eth0 inet dhcp
10 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 0000000..6d3f694
--- /dev/null
+++ b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
@@ -0,0 +1,3 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2RDEPENDS_${PN} += "genmac"
3PRINC := "${@int(PRINC) + 1}"