summaryrefslogtreecommitdiffstats
path: root/config/binary_local-hooks
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2011-09-23 19:02:00 +0200
committerTails developers <amnesia@boum.org>2011-10-19 12:42:31 +0200
commitc873eb32a86cb1656584999229648bc810517493 (patch)
tree6333adf72f2aa5f756234c812bdd063968fb061e /config/binary_local-hooks
parent349d9f875abf3bcee0128f56e9a7f7cc5f513d93 (diff)
Make the language selection menu's position and size adapt itself
according to the number of items in it.
Diffstat (limited to 'config/binary_local-hooks')
-rwxr-xr-xconfig/binary_local-hooks/20-syslinux_i18n5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/binary_local-hooks/20-syslinux_i18n b/config/binary_local-hooks/20-syslinux_i18n
index 19a3d44..4967138 100755
--- a/config/binary_local-hooks/20-syslinux_i18n
+++ b/config/binary_local-hooks/20-syslinux_i18n
@@ -57,6 +57,11 @@ if [ -z "${ORIG_APPEND}" ]; then
exit 16
fi
+# Make sure all languages are visible in the menu
+NUM_LANGUAGES="$(echo ${AMNESIA_SUPPORTED_LANGUAGES} | wc -w)"
+echo "menu vshift $[24-${NUM_LANGUAGES}]" >> "${SYSLINUX_LIVE_CFG}"
+echo "menu rows ${NUM_LANGUAGES}" >> "${SYSLINUX_LIVE_CFG}"
+
# Add menu entries
for LANG_CODE in ${AMNESIA_SUPPORTED_LANGUAGES}; do