mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 12:59:03 +02:00
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>
This commit is contained in:
parent
c42364375a
commit
3a0e1fe3f7
10
meta-sys940x/recipes-core/netbase/files/interfaces
Normal file
10
meta-sys940x/recipes-core/netbase/files/interfaces
Normal file
|
@ -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
|
3
meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
Normal file
3
meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
Normal file
|
@ -0,0 +1,3 @@
|
|||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
RDEPENDS_${PN} += "genmac"
|
||||
PRINC := "${@int(PRINC) + 1}"
|
Loading…
Reference in New Issue
Block a user