1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-12 16:28:24 +01:00
meta-rpi-diya/recipes-diya/initramfs/files/exec

29 lines
458 B
Plaintext
Raw Normal View History

2023-08-01 14:19:39 +02:00
#!/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
2023-08-01 18:28:05 +02:00
msg "No contents to exec in $EXEC_DIR. skipping ..."
2023-08-01 14:19:39 +02:00
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
}