1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-10-01 21:26:40 +02: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
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="Custom system configuration"
DESC="Custom configuration"
case "$1" in
start)

View File

@ -8,29 +8,32 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
PR = "r4"
inherit allarch
inherit allarch update-rc.d
SRC_URI = "file://init \
file://debug \
file://udev \
file://confd \
"
S = "${WORKDIR}"
# INITSCRIPT_NAME = "confd"
# INITSCRIPT_PARAMS = "start 30 S ."
INITSCRIPT_NAME = "confd"
INITSCRIPT_PARAMS = "start 30 S ."
do_install() {
install -d ${D}/init.d
install -d ${D}/etc/init.d
# base
install -m 0755 ${WORKDIR}/init ${D}/init
# install -m 0755 ${WORKDIR}/init ${D}/init
# udev
install -m 0755 ${WORKDIR}/udev ${D}/init.d/01-udev
# install -m 0755 ${WORKDIR}/udev ${D}/init.d/01-udev
# 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
# before even executing /init.