1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2025-08-02 22:20:41 +02:00

use sysvinit

This commit is contained in:
DanyLE
2023-08-02 09:51:11 +02:00
parent a11dda3253
commit 7978bdd326
8 changed files with 24 additions and 8 deletions

View File

@ -2,6 +2,7 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="Custom configuration"
. /etc/profile
case "$1" in
start)
@ -13,6 +14,10 @@ case "$1" in
echo "diya-recovery" > /proc/sys/kernel/hostname
# mount boot
mount /dev/mmcblk0p1 /boot
cat << EOF >> /boot/extraconfig.txt
# initramfs recovery-${MACHINE}.cpio.gz followkernel
EOF
;;
*)
N=/etc/init.d/$NAME

View File

@ -61,7 +61,7 @@ EFI_DIR=/sys/firmware/efi # place to store device firmware information
touch /etc/fstab
# initialize /proc, /sys, /run/lock and /var/lock
mkdir -p /proc /sys /run/lock /var/lock
mkdir -p /proc /sys /run/lock /var/lock /var/run
mount -t proc proc /proc
mount -t sysfs sysfs /sys