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:
Jeffrey Townsend
2016-05-20 00:08:16 +00:00
parent 647e9d3bef
commit 95997e7983

View File

@@ -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.