Custom init scripts can now be added to /etc/sysinit.d for execution prior autoboot.

This commit is contained in:
Jeffrey Townsend
2019-02-17 18:36:22 +00:00
parent b989ec80f9
commit cd4d013a69

View File

@@ -109,6 +109,16 @@ if [ -f "$ONL_PKI" ]; then
"$ONL_PKI" --init
fi
#
# Custom sysinit hooks
#
if [ -d "/etc/sysinit.d" ]; then
for s in `ls /etc/sysinit.d/* | sort`; do
if [ -x "$s" ]; then
"$s"
fi
done
fi
# Parse settings
touch /etc/onl/SWI /etc/onl/CONSOLESPEED /etc/onl/PASSWORD /etc/onl/NET /etc/onl/BOOTMODE /etc/onl/BOOTPARAMS