mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-11-02 11:18:18 +00:00
Custom init scripts can now be added to /etc/sysinit.d for execution prior autoboot.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user