Re: [OE-core] [PATCH 1/1] procps: install symlink under /etc/sysctl.d in case of systemd

2014-11-11 Thread Koen Kooi

 Op 9 nov. 2014, om 08:03 heeft Chen Qi qi.c...@windriver.com het volgende 
 geschreven:
 
 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.c...@windriver.com

Look good to me.
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 1/1] procps: install symlink under /etc/sysctl.d in case of systemd

2014-11-08 Thread Chen Qi
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.c...@windriver.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
-- 
1.9.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core