summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/mv_install.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-27 20:06:34 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-27 20:06:34 (GMT)
commit473975ef60ffa95ecdf3a61e0bbff9698070d88c (patch)
tree04853936a279d38af81abe82ba7bfb551cfa39c1 /abs/core/LinHES-config/mv_install.py
parentd1759e01708595072a4f095ed4321066740d3687 (diff)
downloadlinhes_pkgbuild-473975ef60ffa95ecdf3a61e0bbff9698070d88c.zip
linhes_pkgbuild-473975ef60ffa95ecdf3a61e0bbff9698070d88c.tar.gz
linhes_pkgbuild-473975ef60ffa95ecdf3a61e0bbff9698070d88c.tar.bz2
LinHES-config: on install set the grub menu color scheme to blue/yellow
Diffstat (limited to 'abs/core/LinHES-config/mv_install.py')
-rwxr-xr-xabs/core/LinHES-config/mv_install.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/abs/core/LinHES-config/mv_install.py b/abs/core/LinHES-config/mv_install.py
index 6a52468..1cb341f 100755
--- a/abs/core/LinHES-config/mv_install.py
+++ b/abs/core/LinHES-config/mv_install.py
@@ -887,17 +887,23 @@ def grub_it():
logging.debug(" Couldn't open grub file for reading")
pass
- time_line = "GRUB_TIMEOUT="
- hidden_time = "GRUB_HIDDEN_TIMEOUT="
- color_line = "GRUB_COLOR"
+ time_line = "GRUB_TIMEOUT="
+ hidden_time = "GRUB_HIDDEN_TIMEOUT="
+ color_line_normal = "GRUB_COLOR_NORMAL"
+ color_line_highlight = "GRUB_COLOR_HIGHLIGHT"
for line in oldgrub:
new_line=line
if line.find(time_line) != -1 :
new_line="GRUB_TIMEOUT=0\n"
- if line.find(color_line) != -1 :
- new_line=line.lstrip('''#''')
+ if line.find(color_line_normal) != -1 :
+ #new_line=line.lstrip('''#''')
+ new_line='''GRUB_COLOR_NORMAL="white/blue"\n'''
+
+ if line.find(color_line_highlight) != -1 :
+ #new_line=line.lstrip('''#''')
+ new_line='''GRUB_COLOR_HIGHLIGHT="black/yellow"\n'''
if line.find(hidden_time) != -1 :
new_line="GRUB_HIDDEN_TIMEOUT=5\n"