procps: install symlink under /etc/sysctl.d in case of systemd
cover procps: install symlink under /etc/sysctl.d in case of systemd
The following changes since commit d7a277b35bcc67050046c76fb70412101679a545:
docbook-xsl-stylesheets: add perl to RDEPENDS (2014-11-04 10:20:34 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib ChenQi/procps-sysctl.d
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/procps-sysctl.d
Chen Qi (1):
procps: install symlink under /etc/sysctl.d in case of systemd
meta/recipes-extended/procps/procps_3.2.8.bb | 4 ++++ 1 file changed, 4 insertions(+)
Signature · 1 line
1.9.1
PATCH 1/1 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.
--- meta/recipes-extended/procps/procps_3.2.8.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta/recipes-extended/procps/procps_3.2.8.bb +4 -0
@@ -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"
Signature · 1 line
1.9.1
Quoted 7 lines
Op 9 nov. 2014, om 08:03 heeft Chen Qi <[email protected]> het volgende geschreven:
Install
/etc/sysctl.d/99-sysctl.confsymlink in case of systemd so that/etc/sysctl.confis taken into consideration by systemd-sysctl.Signed-off-by Chen Qi <[email protected]>
Look good to me.