From 7c9548a4dd03b6a38ace3a2e6812952742319c3b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 27 Jan 2009 17:30:27 +0000 Subject: dynamic renaming of bootloader entries - rename "linux" to "Boot Mandriva Linux 2009 Spring" - rename "windows" to "Boot Microsoft Windows" - rename "2.6.xx" to "Linux with kernel 2.6.xx" - replace "Installation" with "Install Mandriva Linux 2009 Spring" --- src/common.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/common.inc b/src/common.inc index 7a7ba6b..cf6bc2e 100644 --- a/src/common.inc +++ b/src/common.inc @@ -875,6 +875,8 @@ } def +/kernel_str 256 string def + % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % ( text ) == > ( new_text ) /menuitemmap { @@ -908,9 +910,11 @@ dup "mediachk" eq { pop txt_mediacheck return } if dup "mediacheck" eq { pop txt_mediacheck return } if } { - dup "linux" eq { pop "Linux" return } if + dup "linux" eq { pop txt_linux return } if dup "failsafe" eq { pop txt_safe_linux return } if - dup "windows" eq { pop "Windows" return } if + dup "windows" eq { pop txt_windows return } if + dup "2.6" strstr 1 eq { txt_linux_kernel_version kernel_str sprintf + kernel_str return } if } ifelse } def -- cgit v1.2.1