[oe-commits] Chen Qi : procps: install symlink under /etc/sysctl.d in case of systemd

git at git.openembedded.org git at git.openembedded.org
Wed Nov 26 17:07:08 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: a32869fcbcb5f31741a32fdca14e7f38c2abace6
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a32869fcbcb5f31741a32fdca14e7f38c2abace6

Author: Chen Qi <Qi.Chen at windriver.com>
Date:   Sun Nov  9 15:03:41 2014 +0800

procps: install symlink under /etc/sysctl.d in case of systemd

Install /etc/sysctl.d/99-sysctl.conf symlink in case of systemd so
that /etc/sysctl.conf is taken into consideration by systemd-sysctl.

Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/recipes-extended/procps/procps_3.2.8.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-extended/procps/procps_3.2.8.bb b/meta/recipes-extended/procps/procps_3.2.8.bb
index 6211a7c..fcfde19 100644
--- a/meta/recipes-extended/procps/procps_3.2.8.bb
+++ b/meta/recipes-extended/procps/procps_3.2.8.bb
@@ -28,6 +28,10 @@ EXTRA_OEMAKE = 'CFLAGS="${CFLAGS} -I${STAGING_INCDIR}" \
 do_install_append () {
 	install -d ${D}${sysconfdir}
 	install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}/sysctl.conf
+	if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+		install -d ${D}${sysconfdir}/sysctl.d
+		ln -sf ../sysctl.conf ${D}${sysconfdir}/sysctl.d/99-sysctl.conf
+	fi
 }
 
 CONFFILES_${PN} = "${sysconfdir}/sysctl.conf"



More information about the Openembedded-commits mailing list