mirror of
https://git.yoctoproject.org/poky
synced 2026-06-18 06:39:53 +00:00
4186d78d99
Remove this service as it's moved to the run-postinsts recipe. [YOCTO #5719] (From OE-Core rev: 1e3ac15fcf502396f92c69788642a56064e22e35) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
41 lines
832 B
BlitzBasic
41 lines
832 B
BlitzBasic
SUMMARY = "Enhances systemd compatilibity with existing SysVinit scripts"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"
|
|
|
|
PR = "r18"
|
|
|
|
DEPENDS = "systemd-systemctl-native"
|
|
|
|
inherit allarch
|
|
|
|
ALLOW_EMPTY_${PN} = "1"
|
|
|
|
SYSTEMD_DISABLED_SYSV_SERVICES = " \
|
|
busybox-udhcpc \
|
|
hwclock \
|
|
networking \
|
|
syslog.busybox \
|
|
dbus-1 \
|
|
"
|
|
|
|
pkg_postinst_${PN} () {
|
|
cd $D${sysconfdir}/init.d
|
|
|
|
echo "Disabling the following sysv scripts: "
|
|
|
|
OPTS=""
|
|
|
|
if [ -n "$D" ]; then
|
|
OPTS="--root=$D"
|
|
fi
|
|
|
|
for i in ${SYSTEMD_DISABLED_SYSV_SERVICES} ; do
|
|
if [ \( -e $i -o $i.sh \) -a ! \( -e $D${sysconfdir}/systemd/system/$i.service -o -e $D${systemd_unitdir}/system/$i.service \) ] ; then
|
|
echo -n "$i: " ; systemctl ${OPTS} mask $i.service
|
|
fi
|
|
done ; echo
|
|
}
|
|
|
|
RDPEPENDS_${PN} = "systemd"
|