1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-19 11:28:21 +01:00

use sysvinit

This commit is contained in:
DanyLE 2023-08-02 00:05:19 +02:00
parent 72d100eb82
commit 08d987160b
2 changed files with 11 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="Custom system configuration" DESC="Custom configuration"
case "$1" in case "$1" in
start) start)

View File

@ -8,29 +8,32 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
PR = "r4" PR = "r4"
inherit allarch inherit allarch update-rc.d
SRC_URI = "file://init \ SRC_URI = "file://init \
file://debug \ file://debug \
file://udev \ file://udev \
file://confd \
" "
S = "${WORKDIR}" S = "${WORKDIR}"
# INITSCRIPT_NAME = "confd" INITSCRIPT_NAME = "confd"
# INITSCRIPT_PARAMS = "start 30 S ." INITSCRIPT_PARAMS = "start 30 S ."
do_install() { do_install() {
install -d ${D}/init.d install -d ${D}/etc/init.d
# base # base
install -m 0755 ${WORKDIR}/init ${D}/init # install -m 0755 ${WORKDIR}/init ${D}/init
# udev # udev
install -m 0755 ${WORKDIR}/udev ${D}/init.d/01-udev # install -m 0755 ${WORKDIR}/udev ${D}/init.d/01-udev
# debug # debug
install -m 0755 ${WORKDIR}/debug ${D}/init.d/00-debug # install -m 0755 ${WORKDIR}/debug ${D}/init.d/00-debug
install -m 0755 ${WORKDIR}/confd ${D}/etc/init.d/confd
# Create device nodes expected by some kernels in initramfs # Create device nodes expected by some kernels in initramfs
# before even executing /init. # before even executing /init.