2023-08-01 14:19:39 +02:00
|
|
|
SUMMARY = "Modular initramfs system"
|
|
|
|
LICENSE = "MIT"
|
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
2023-08-01 23:46:26 +02:00
|
|
|
RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils} sysvinit"
|
2023-08-01 14:19:39 +02:00
|
|
|
RRECOMMENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}"
|
|
|
|
|
|
|
|
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
|
|
|
|
|
|
|
PR = "r4"
|
|
|
|
|
2023-08-02 00:05:19 +02:00
|
|
|
inherit allarch update-rc.d
|
2023-08-01 14:19:39 +02:00
|
|
|
|
|
|
|
SRC_URI = "file://init \
|
2023-08-02 00:05:19 +02:00
|
|
|
file://confd \
|
2023-08-01 14:19:39 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
|
2023-08-02 00:05:19 +02:00
|
|
|
INITSCRIPT_NAME = "confd"
|
|
|
|
INITSCRIPT_PARAMS = "start 30 S ."
|
2023-08-01 23:15:40 +02:00
|
|
|
|
2023-08-01 14:19:39 +02:00
|
|
|
do_install() {
|
2023-08-02 00:51:40 +02:00
|
|
|
install -d ${D}/etc/init.d
|
2023-08-01 14:19:39 +02:00
|
|
|
|
|
|
|
# base
|
2023-08-02 00:29:37 +02:00
|
|
|
install -m 0755 ${WORKDIR}/init ${D}/init
|
2023-08-02 00:05:19 +02:00
|
|
|
install -m 0755 ${WORKDIR}/confd ${D}/etc/init.d/confd
|
2023-08-01 14:19:39 +02:00
|
|
|
|
|
|
|
# Create device nodes expected by some kernels in initramfs
|
|
|
|
# before even executing /init.
|
|
|
|
install -d ${D}/dev
|
|
|
|
mknod -m 622 ${D}/dev/console c 5 1
|
2023-08-01 23:26:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-08-02 00:29:37 +02:00
|
|
|
FILES:${PN} = "/etc /init /dev"
|