diff --git a/recipes-openharmony/openharmony/files/start_service b/recipes-openharmony/openharmony/files/start_service new file mode 100644 index 0000000000000000000000000000000000000000..e3d041ddbac3f1464320fb7849ed1ee9c31fdf24 --- /dev/null +++ b/recipes-openharmony/openharmony/files/start_service @@ -0,0 +1,2 @@ +#!/bin/sh +systemctl start "$@" diff --git a/recipes-openharmony/openharmony/files/stop_service b/recipes-openharmony/openharmony/files/stop_service new file mode 100644 index 0000000000000000000000000000000000000000..4118ad89a2e1249e65dd52379d96cadb1dc75314 --- /dev/null +++ b/recipes-openharmony/openharmony/files/stop_service @@ -0,0 +1,2 @@ +#!/bin/sh +systemctl stop "$@" diff --git a/recipes-openharmony/openharmony/openharmony-standard_3.0.bb b/recipes-openharmony/openharmony/openharmony-standard_3.0.bb index 964b410b749de85a3f4501735dbf2d75fd625345..f8d425157127059f9d7cef38b68cdb66962cf84b 100644 --- a/recipes-openharmony/openharmony/openharmony-standard_3.0.bb +++ b/recipes-openharmony/openharmony/openharmony-standard_3.0.bb @@ -212,6 +212,8 @@ symlink_python3() { ln -sf $(which python3) ${STAGING_BINDIR_NATIVE}/python } +SRC_URI += "file://start_service file://stop_service" + do_install () { OHOS_PACKAGE_OUT_DIR="${B}/packages/${OHOS_PRODUCT_PLATFORM_TYPE}" @@ -249,6 +251,12 @@ do_install () { # Avoid file-conflict on /usr/bin/udevadm with //third_party/eudev and udev # recipe rm ${D}${bindir}/udevadm + + # Wrapper scripts for systemctl, which is at least used by ACTS + mkdir -p ${D}${sbindir} + install -t ${D}${sbindir} -m 0755 \ + ${WORKDIR}/start_service \ + ${WORKDIR}/stop_service } PACKAGES =+ "${PN}-configs ${PN}-fonts"