summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2009-01-27 17:30:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2009-01-27 17:30:27 +0000
commit7c9548a4dd03b6a38ace3a2e6812952742319c3b (patch)
tree61b7517e2fd5a893e666e793b27190707cc42915 /src
parent0fed9ddcbc36d5db744ee6b6cc181dfbd7a4dcae (diff)
downloadbootloader-theme-7c9548a4dd03b6a38ace3a2e6812952742319c3b.tar
bootloader-theme-7c9548a4dd03b6a38ace3a2e6812952742319c3b.tar.gz
bootloader-theme-7c9548a4dd03b6a38ace3a2e6812952742319c3b.tar.bz2
bootloader-theme-7c9548a4dd03b6a38ace3a2e6812952742319c3b.tar.xz
bootloader-theme-7c9548a4dd03b6a38ace3a2e6812952742319c3b.zip
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"
Diffstat (limited to 'src')
-rw-r--r--src/common.inc8
1 files changed, 6 insertions, 2 deletions
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