mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-27 11:08:21 +01:00
use sysvinit
This commit is contained in:
parent
5162e55193
commit
e2d877de04
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
DESC="Auto deployment configuration from media"
|
DESC="Custom system configuration"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
@ -120,8 +120,6 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec /sbin/init
|
|
||||||
|
|
||||||
# active the back light
|
# active the back light
|
||||||
echo 0 > /sys/class/backlight/backlight/bl_power
|
echo 0 > /sys/class/backlight/backlight/bl_power
|
||||||
|
|
||||||
@ -161,7 +159,7 @@ for m in $MODULES_DIR/*; do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
exec /sbin/init
|
||||||
|
|
||||||
# exec sh
|
|
||||||
# Catch all
|
# Catch all
|
||||||
fatal "ERROR: Initramfs failed to initialize the system."
|
fatal "ERROR: Initramfs failed to initialize the system."
|
||||||
|
@ -11,13 +11,14 @@ PR = "r4"
|
|||||||
inherit allarch update-rc.d
|
inherit allarch update-rc.d
|
||||||
|
|
||||||
SRC_URI = "file://init \
|
SRC_URI = "file://init \
|
||||||
file://confd \
|
file://debug \
|
||||||
|
file://udev \
|
||||||
"
|
"
|
||||||
|
|
||||||
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}/init.d
|
||||||
@ -26,12 +27,10 @@ do_install() {
|
|||||||
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}/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.
|
||||||
|
Loading…
Reference in New Issue
Block a user