3
# mangle-syslinux-menu.sh: Recreate live.cfg - a part of the syslinux config
5
# Author: Cody A.W. Somerville <cody.somerville@canonical.com>
6
# Date : June 5th, 2009
9
#disable this since Dell has already supplied us with an explicit live.cfg to use
11
#if [ -f binary/syslinux/live.cfg ]
13
# echo "Mangling syslinux boot menu to be simpler..."
14
# LIVE_CFG="binary/syslinux/live.cfg"
15
#elif [ -f binary/isolinux/live.cfg ]
17
# echo "Mangling isolinux boot menu to be simpler..."
18
# LIVE_CFG="binary/isolinux/live.cfg"
20
# echo "No live.cfg configuration file found when attempting to mangle."
24
#grep --line-regexp --after-context=4 "label live" "${LIVE_CFG}" >> "${LIVE_CFG}".new
25
#grep --line-regexp --after-context=4 "label auto" "${LIVE_CFG}" | sed 's/menu label Text Auto/menu label Automatic Installation/' >> "${LIVE_CFG}".new
26
#mv "${LIVE_CFG}".new "${LIVE_CFG}"