mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-26 17:57:01 +00:00
Use the system boot-config from /mnt/onl/boot/boot-config if present.
If not, use system default /etc/onl/boot-config-default if present.
This commit is contained in:
@@ -76,7 +76,13 @@ if [ ! -f /etc/onl/abort ]; then
|
||||
cat /etc/issue
|
||||
fi
|
||||
|
||||
[ ! -f /mnt/onl/boot/boot-config ] || cat /mnt/onl/boot/boot-config >>/etc/onl/boot-config
|
||||
if [ -f /mnt/onl/boot/boot-config ]; then
|
||||
# Use local boot-config.
|
||||
cp /mnt/onl/boot/boot-config /etc/onl/boot-config
|
||||
elif [ -f /etc/onl/boot-config-default ]; then
|
||||
# Use default boot-config.
|
||||
cp /etc/onl/boot-config-default /etc/onl/boot-config
|
||||
fi
|
||||
|
||||
#
|
||||
# Initialize the /mnt/flash/boot area.
|
||||
|
||||
Reference in New Issue
Block a user