summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-21 19:10:53 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-21 19:10:53 (GMT)
commit10263f34147534db48390cfa78ef90ac5d2bcb29 (patch)
treef1e01a2d8ba890a0cf67866399f9a0fb00275060 /abs/core
parentade6f1d7bf16c77c1da1a0497a6cbc073b933c58 (diff)
downloadlinhes_pkgbuild-10263f34147534db48390cfa78ef90ac5d2bcb29.zip
linhes_pkgbuild-10263f34147534db48390cfa78ef90ac5d2bcb29.tar.gz
linhes_pkgbuild-10263f34147534db48390cfa78ef90ac5d2bcb29.tar.bz2
LinHES-config: mv_advanced update splash/nosplash for grub config
Diffstat (limited to 'abs/core')
-rwxr-xr-xabs/core/LinHES-config/mv_advanced.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/abs/core/LinHES-config/mv_advanced.py b/abs/core/LinHES-config/mv_advanced.py
index fdcd1e2..e72b6bc 100755
--- a/abs/core/LinHES-config/mv_advanced.py
+++ b/abs/core/LinHES-config/mv_advanced.py
@@ -84,13 +84,20 @@ def setup_ncid_daemon(Runncidd):
def setup_splash(Usebootsplash):
if Usebootsplash == "1":
logging.info(" Enabling splash")
- cmd = ''' sed -i "s/^default.*0/default 1/g" /boot/grub/menu.lst'''
+ cmd = ''' sed -i "s/^set default.*$/set default="0"/g" /boot/grub/grub.cfg'''
+ mv_common.runcmd(cmd)
+ #this is needed in case grub-mkconfig is run
+ cmd = ''' sed -i "s/^GRUB_DEFAULT.*$/GRUB_DEFAULT="0"/g" /etc/default/grub'''
mv_common.runcmd(cmd)
else:
logging.info(" Disabling splash")
- cmd = ''' sed -i "s/^default.*1/default 0/g" /boot/grub/menu.lst'''
+ cmd = ''' sed -i "s/^set default.*$/set default="1"/g" /boot/grub/grub.cfg'''
+ mv_common.runcmd(cmd)
+ #this is needed in case grub-mkconfig is run
+ cmd = ''' sed -i "s/^GRUB_DEFAULT.*$/GRUB_DEFAULT="1"/g" /etc/default/grub'''
mv_common.runcmd(cmd)
return
+
def setup_rrd(UseRRD):
if UseRRD == "1":
logging.info(" Enabling rrd_stats")