summaryrefslogtreecommitdiffstats
path: root/config/binary_local-hooks
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-05-11 21:33:33 +0200
committerTails developers <amnesia@boum.org>2012-05-11 21:34:02 +0200
commit7f10ffa75d8a3df33de17d294c24070f3f0c7fb9 (patch)
treecafffbf68136fa71c41b0b1cd0af66bd775ab84b /config/binary_local-hooks
parent07d1a659b97dbab5e6c47680aff843863090359d (diff)
syslinux: custom menu
Diffstat (limited to 'config/binary_local-hooks')
-rwxr-xr-xconfig/binary_local-hooks/10-syslinux_customize (renamed from config/binary_local-hooks/10-syslinux_remove_buggy_help)16
1 files changed, 14 insertions, 2 deletions
diff --git a/config/binary_local-hooks/10-syslinux_remove_buggy_help b/config/binary_local-hooks/10-syslinux_customize
index 5961f96..12893a5 100755
--- a/config/binary_local-hooks/10-syslinux_remove_buggy_help
+++ b/config/binary_local-hooks/10-syslinux_customize
@@ -17,8 +17,6 @@ then
exit 0
fi
-Echo_message "removing buggy syslinux help"
-
# Setting boot method specific variables
case "${LB_BINARY_IMAGES}" in
iso|iso-hybrid)
@@ -29,6 +27,20 @@ case "${LB_BINARY_IMAGES}" in
;;
esac
+Echo_message "customize buggy syslinux help"
+
# Remove help menu entry from menu.cfg (and every line after)
CFG_FILE="${SYSLINUX_PATH}/menu.cfg"
perl -pni -E 'exit if m{^label[[:blank:]]+help$}' "${CFG_FILE}"
+
+Echo_message "customize syslinux menu"
+
+sed -i -e "s/Boot menu/Boot Tails/" "${CFG_FILE}"
+
+cat > "${SYSLINUX_PATH}/tails.cfg" << EOF
+menu color sel * #ffffffff #55555555 *
+menu color hotsel 1;7;37;40 #ffffffff #22222222 *
+EOF
+
+sed -i -e '/^include stdmenu\.cfg/a include tails.cfg' "${CFG_FILE}"
+