Commit d3c5690c authored by Florent Revest's avatar Florent Revest

Adds an android-init service that loads /system/bin/init

parent e933fda4
[Unit]
Description=/system/bin/init initializes the property service and launches servicemanager and logd
Wants=systemd-udev-settle.service
After=local-fs.target systemd-udev-settle.service systemd-tmpfiles-setup.service
Before=basic.target network.target bluetooth.service ofono.service sensord.service
DefaultDependencies=no
Conflicts=shutdown.target
[Service]
Type=simple
ExecStart=/system/bin/init
[Install]
WantedBy=graphical.target
on init
write /dev/.coldboot_done 1
mkdir /dev/graphics/
symlink /dev/fb0 /dev/graphics/fb0
class_start core
service logd /system/bin/logd
class core
socket logd stream 0666 root root
socket logdr seqpacket 0666 root root
socket logdw dgram 0222 root root
service servicemanager /system/bin/servicemanager
class core
DESCRIPTION = "This installs an android-init service which loads /system/bin/init with the /init.rc file which loads logd and servicemanager"
PR = "r0"
SRC_URI = "file://init.rc \
file://android-init.service"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
S = "${WORKDIR}"
do_install() {
install -m 0644 ${WORKDIR}/init.rc ${D}/init.rc
install -d ${D}/etc/systemd/system/multi-user.target.wants/
cp ${WORKDIR}/android-init.service ${D}/etc/systemd/system/
ln -s ../android-init.service ${D}/etc/systemd/system/multi-user.target.wants/android-init.service
}
FILES_${PN} += "/init.rc"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment