summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-phosphor/common/recipes-phosphor/network/network.bb6
-rwxr-xr-xmeta-phosphor/common/recipes-phosphor/network/network/80-dhcp.network5
2 files changed, 10 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/network/network.bb b/meta-phosphor/common/recipes-phosphor/network/network.bb
index 33e2693f8..b53f7f44c 100644
--- a/meta-phosphor/common/recipes-phosphor/network/network.bb
+++ b/meta-phosphor/common/recipes-phosphor/network/network.bb
@@ -8,7 +8,9 @@ inherit obmc-phosphor-systemd
RDEPENDS_${PN} += "python-dbus python-pygobject"
-SRC_URI += "git://github.com/openbmc/phosphor-networkd"
+SRC_URI += "git://github.com/openbmc/phosphor-networkd \
+ file://80-dhcp.network \
+ "
SRCREV = "a657afc9cc76dc6678edb8de9df569f92dd108e1"
@@ -17,5 +19,7 @@ S = "${WORKDIR}/git"
do_install() {
install -d ${D}/${sbindir}
install ${S}/netman.py ${D}/${sbindir}
+ install -d ${D}/etc/systemd/network/
+ install ${WORKDIR}/80-dhcp.network ${D}/etc/systemd/network/
}
diff --git a/meta-phosphor/common/recipes-phosphor/network/network/80-dhcp.network b/meta-phosphor/common/recipes-phosphor/network/network/80-dhcp.network
new file mode 100755
index 000000000..e871c6961
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/network/network/80-dhcp.network
@@ -0,0 +1,5 @@
+[Match]
+Name=eth0
+
+[Network]
+DHCP=yes
OpenPOWER on IntegriCloud