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:
parent
72d100eb82
commit
08d987160b
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
DESC="Custom system configuration"
|
||||
DESC="Custom configuration"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user