]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
procps: install symlink under /etc/sysctl.d in case of systemd ChenQi/procps-sysctl.d
authorChen Qi <Qi.Chen@windriver.com>
Sun, 9 Nov 2014 06:56:00 +0000 (01:56 -0500)
committerChen Qi <Qi.Chen@windriver.com>
Sun, 9 Nov 2014 07:02:04 +0000 (15:02 +0800)
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@windriver.com>
meta/recipes-extended/procps/procps_3.2.8.bb

index 6211a7c955e6d8eff5e60486eeadeac5db04cbdb..fcfde194f18863bcc0509559534466c95fbd474d 100644 (file)
@@ -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"