summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2015-01-29 00:33:25 +0000
committerRaphaƫl Hertzog <hertzog@debian.org>2020-05-01 12:38:04 +0200
commit578dbee516a370935e1b2e49205c524370e1f8d0 (patch)
tree677419bf16a826e51a43100d2ac0287669207286 /scripts
parentd22c1f177d7192f1d71743783a88ed6e98e56c6a (diff)
downloadvyos-live-build-578dbee516a370935e1b2e49205c524370e1f8d0.tar.gz
vyos-live-build-578dbee516a370935e1b2e49205c524370e1f8d0.zip
bootloaders: change 'Advanced options' to 'Utilities'
more fitting now that we've moved the advanced installer entries out to a different submenu, leaving just memtest (and HDT on syslinux). the advanced.cfg file is also renamed to utilities.cfg in the syslinux case, but in a backwards compatible way of moving the user advanced.cfg file over the new one, if the user provides a file with the old name. alternatively we could just leave the old name in place, but that would be a little odd. Gbp-Dch: Short
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_syslinux8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux
index c3968712c..34ce02b86 100755
--- a/scripts/build/binary_syslinux
+++ b/scripts/build/binary_syslinux
@@ -147,6 +147,10 @@ else
rm "${_TARGET}"/install_gui.cfg
mv "${_TARGET}"/install_text.cfg "${_TARGET}"/install.cfg
fi
+# Move user advanced.cfg to utilities.cfg for backwards compatibility
+if [ -e "${_TARGET}"/advanced.cfg ]; then
+ mv -f "${_TARGET}"/advanced.cfg "${_TARGET}"/utilities.cfg
+fi
# Configuring files
if [ -e "${_TARGET}/live.cfg.in" ]
@@ -281,9 +285,9 @@ fi
# Replace placeholder for optional memtest menu entry include
if [ ! -f "binary/${MEMTEST_PATH}" ]; then
rm -f "${_TARGET}"/memtest.cfg
- sed -i -e "#@OPTIONAL_MEMTEST_INCLUDE@#d" "${_TARGET}"/advanced.cfg
+ sed -i -e "#@OPTIONAL_MEMTEST_INCLUDE@#d" "${_TARGET}"/utilities.cfg
else
- sed -i -e "s#@OPTIONAL_MEMTEST_INCLUDE@#include memtest.cfg#g" "${_TARGET}"/advanced.cfg
+ sed -i -e "s#@OPTIONAL_MEMTEST_INCLUDE@#include memtest.cfg#g" "${_TARGET}"/utilities.cfg
fi
if [ -e "${_TARGET}/splash.svg" ] && [ ! -e "${_TARGET}/splash.png" ]