ALT Linux Bugzilla
– Attachment 5724 Details for
Bug 28218
Если нет изображения, не надо рисовать чёрно-белую тему
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
updated grub-2.00-altlinux-theme.patch
grub-2.00-altlinux-theme.patch (text/plain), 2.32 KB, created by
Michael Shigorin
on 2013-01-31 13:49:30 MSK
(
hide
)
Description:
updated grub-2.00-altlinux-theme.patch
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2013-01-31 13:49:30 MSK
Size:
2.32 KB
patch
obsolete
>diff -Naur grub-2.00-orig/Makefile.util.def grub-2.00/Makefile.util.def >--- grub-2.00-orig/Makefile.util.def 2012-06-26 05:07:30.000000000 +0300 >+++ grub-2.00/Makefile.util.def 2012-10-26 18:42:47.297913981 +0300 >@@ -378,6 +378,12 @@ > }; > > script = { >+ name = '05_altlinux_theme'; >+ common = util/grub.d/05_altlinux_theme.in; >+ installdir = grubconf; >+}; >+ >+script = { > name = '10_windows'; > common = util/grub.d/10_windows.in; > installdir = grubconf; >diff -Naur grub-2.00-orig/util/grub.d/05_altlinux_theme.in grub-2.00/util/grub.d/05_altlinux_theme.in >--- grub-2.00-orig/util/grub.d/05_altlinux_theme.in 1970-01-01 03:00:00.000000000 +0300 >+++ grub-2.00/util/grub.d/05_altlinux_theme.in 2013-01-31 12:24:54.321794714 +0300 >@@ -0,0 +1,44 @@ >+#! /bin/sh -e >+ >+prefix=@prefix@ >+exec_prefix=@exec_prefix@ >+bindir=@bindir@ >+libdir=@libdir@ >+datadir=@datadir@ >+. ${datadir}/grub/grub-mkconfig_lib >+ >+# check for usable backgrounds >+use_bg=false >+if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] && [ "x$GRUB_WALLPAPER" != "x" ]; then >+ for i in ${datadir}/grub/`basename $GRUB_WALLPAPER` $GRUB_WALLPAPER ; do >+ if is_path_readable_by_grub $i ; then >+ bg=$i >+ case ${bg} in >+ *.png) reader=png ;; >+ *.tga) reader=tga ;; >+ *.jpg|*.jpeg) reader=jpeg ;; >+ esac >+ if test -e ${libdir}/grub/i386-pc/${reader}.mod ; then >+ echo "Found background image: `basename ${bg}`" >&2 >+ use_bg=true >+ break >+ fi >+ fi >+ done >+fi >+ >+# set the background if possible >+if ${use_bg} ; then >+ prepare_grub_to_access_device `${grub_probe} --target=device ${bg}` >+ cat << EOF >+insmod ${reader} >+EOF >+fi >+ >+GRUB_COLOR_NORMAL=${GRUB_COLOR_NORMAL:=white/black} >+GRUB_COLOR_HIGHLIGHT=${GRUB_COLOR_HIGHLIGHT:=black/light-gray} >+ >+cat << EOF >+set color_normal=$GRUB_COLOR_NORMAL >+set color_highlight=$GRUB_COLOR_HIGHLIGHT >+EOF >diff -Naur grub-2.00-orig/util/grub-mkconfig.in grub-2.00/util/grub-mkconfig.in >--- grub-2.00-orig/util/grub-mkconfig.in 2012-04-05 20:41:07.000000000 +0300 >+++ grub-2.00/util/grub-mkconfig.in 2012-10-26 18:45:45.763915722 +0300 >@@ -216,6 +216,11 @@ > GRUB_INIT_TUNE \ > GRUB_SAVEDEFAULT \ > GRUB_ENABLE_CRYPTODISK \ >+ GRUB_WALLPAPER \ >+ GRUB_COLOR_NORMAL \ >+ GRUB_COLOR_HIGHLIGHT \ >+ GRUB_VMLINUZ_SYMLINKS \ >+ GRUB_VMLINUZ_FAILSAFE \ > GRUB_BADRAM > > if test "x${grub_cfg}" != "x"; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28218
:
5673
| 5724