summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-support/netcf/netcf_git.bb8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta-networking/recipes-support/netcf/netcf_git.bb b/meta-networking/recipes-support/netcf/netcf_git.bb
index 90c77c9f54..a7a5000e27 100644
--- a/meta-networking/recipes-support/netcf/netcf_git.bb
+++ b/meta-networking/recipes-support/netcf/netcf_git.bb
@@ -47,9 +47,11 @@ do_install_append() {
47 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 47 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
48 install -d ${D}${systemd_unitdir}/system 48 install -d ${D}${systemd_unitdir}/system
49 if [ -d "${D}${libdir}/systemd/system" ]; then 49 if [ -d "${D}${libdir}/systemd/system" ]; then
50 mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ 50 if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ; then
51 rm -rf ${D}${libdir}/systemd/ 51 mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/
52 else 52 rm -rf ${D}${libdir}/systemd/
53 fi
54 elif [ "${systemd_unitdir}" != "${nonarch_libdir}/systemd" ] ; then
53 mv ${D}${nonarch_libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ 55 mv ${D}${nonarch_libdir}/systemd/system/* ${D}${systemd_unitdir}/system/
54 rm -rf ${D}${nonarch_libdir}/systemd/ 56 rm -rf ${D}${nonarch_libdir}/systemd/
55 fi 57 fi