mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
systemd-conf: add PACKAGECONFIG to enable/disable auto ethernet DHCP
Allow distros which include other network managers to disable the auto DHCP setup of interfaces in systemd-networkd. (From OE-Core rev: ea5e65b578498df7976bbc560bdcd39c2ebcc1d9) Signed-off-by: Jack Mitchell <ml@embed.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
94f827ef0d
commit
f66a0a0d93
@@ -5,6 +5,9 @@ DefaultTimeoutStartSec setting."
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
PACKAGECONFIG ??= "dhcp-ethernet"
|
||||
PACKAGECONFIG[dhcp-ethernet] = ""
|
||||
|
||||
SRC_URI = "\
|
||||
file://journald.conf \
|
||||
file://logind.conf \
|
||||
@@ -17,7 +20,10 @@ do_install() {
|
||||
install -D -m0644 ${WORKDIR}/journald.conf ${D}${systemd_unitdir}/journald.conf.d/00-${PN}.conf
|
||||
install -D -m0644 ${WORKDIR}/logind.conf ${D}${systemd_unitdir}/logind.conf.d/00-${PN}.conf
|
||||
install -D -m0644 ${WORKDIR}/system.conf ${D}${systemd_unitdir}/system.conf.d/00-${PN}.conf
|
||||
install -D -m0644 ${WORKDIR}/wired.network ${D}${systemd_unitdir}/network/80-wired.network
|
||||
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'dhcp-ethernet', 'true', 'false', d)}; then
|
||||
install -D -m0644 ${WORKDIR}/wired.network ${D}${systemd_unitdir}/network/80-wired.network
|
||||
fi
|
||||
}
|
||||
|
||||
# Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52
|
||||
|
||||
Reference in New Issue
Block a user