diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-11-09 15:03:41 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-25 12:58:19 +0000 |
commit | a32869fcbcb5f31741a32fdca14e7f38c2abace6 (patch) | |
tree | 2cedf26d1ac2e35553dcd260bffade67b0fc52b0 /meta/recipes-extended | |
parent | 74b191022494fc1d357c1f05dbce38c986bed365 (diff) | |
download | openembedded-core-a32869fcbcb5f31741a32fdca14e7f38c2abace6.tar.gz openembedded-core-a32869fcbcb5f31741a32fdca14e7f38c2abace6.tar.bz2 openembedded-core-a32869fcbcb5f31741a32fdca14e7f38c2abace6.zip |
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@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/procps/procps_3.2.8.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-extended/procps/procps_3.2.8.bb b/meta/recipes-extended/procps/procps_3.2.8.bb index 6211a7c955..fcfde194f1 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" |