mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2025-08-03 06:31:10 +02:00
use sysvinit
This commit is contained in:
@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2011 O.S. Systems Software LTDA.
|
||||
# Licensed on MIT
|
||||
|
||||
e2fs_enabled() {
|
||||
return 0
|
||||
}
|
||||
|
||||
e2fs_run() {
|
||||
filesystems="ext4 ext3 ext2"
|
||||
|
||||
# load modules
|
||||
for fs in $filesystems; do
|
||||
load_kernel_module $fs
|
||||
done
|
||||
|
||||
for fs in $filesystems; do
|
||||
eval "fs_options=\$bootparam_${fs}"
|
||||
if [ -n "$fs_options" ]; then
|
||||
dev=`expr "$fs_options" : '\([^:]*\).*'`
|
||||
path=`expr "$fs_options" : '[^:]*:\([^:]*\).*'`
|
||||
|
||||
info "Mounting $dev as $fs on $path as $fs..."
|
||||
mkdir -p $path
|
||||
mount -t $fs $dev $path
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2017 O.S. Systems Software LTDA.
|
||||
# Licensed on MIT
|
||||
|
||||
EXEC_DIR=/exec.d # place to look for modules
|
||||
|
||||
exec_enabled() {
|
||||
return 0
|
||||
}
|
||||
|
||||
exec_run() {
|
||||
if [ ! -d $EXEC_DIR ]; then
|
||||
msg "No contents to exec in $EXEC_DIR. skipping ..."
|
||||
fi
|
||||
|
||||
# Load and run modules
|
||||
for m in $EXEC_DIR/*; do
|
||||
# Skip backup files
|
||||
if [ "`echo $m | sed -e 's/\~$//'`" != "$m" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
debug "Starting $m"
|
||||
|
||||
# process module
|
||||
./$m
|
||||
done
|
||||
}
|
@ -159,7 +159,7 @@ for m in $MODULES_DIR/*; do
|
||||
done
|
||||
done
|
||||
|
||||
exec /sbin/init
|
||||
|
||||
# exec /sbin/init
|
||||
exec sh
|
||||
# Catch all
|
||||
fatal "ERROR: Initramfs failed to initialize the system."
|
||||
|
Reference in New Issue
Block a user