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
734bb8d960
commit
de319e1292
@ -32,6 +32,6 @@ cat << 'EOF' >> "${IMAGE_ROOTFS}/etc/hostname"
|
||||
diyaid
|
||||
EOF
|
||||
# enable autologin
|
||||
sed -i 's/options="/&--autologin root /' \
|
||||
"${IMAGE_ROOTFS}${base_bindir}/start_getty"
|
||||
sed -i 's/getty/getty --autologin root/g' \
|
||||
"${IMAGE_ROOTFS}/etc/inittab"
|
||||
}
|
@ -8,6 +8,8 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
|
||||
PR = "r4"
|
||||
|
||||
inherit useradd
|
||||
|
||||
inherit allarch
|
||||
|
||||
SRC_URI = "file://init \
|
||||
@ -17,6 +19,11 @@ SRC_URI = "file://init \
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
USERADD_PACKAGES = "${PN}"
|
||||
GROUPADD_PACKAGES = "${PN}"
|
||||
|
||||
USERADD_PARAM:${PN} = "-u 0 -d /root -r -s /bin/sh root"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/init.d
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user