mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-11-18 15:24:55 +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
|
"$ONL_PKI" --init
|
||||||
fi
|
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
|
# Parse settings
|
||||||
touch /etc/onl/SWI /etc/onl/CONSOLESPEED /etc/onl/PASSWORD /etc/onl/NET /etc/onl/BOOTMODE /etc/onl/BOOTPARAMS
|
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