Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/plymouth/plymouth.client.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2157 by niro, Fri Jan 10 13:49:58 2014 UTC revision 2158 by niro, Fri Jan 10 13:52:56 2014 UTC
# Line 5  require basic-boot Line 5  require basic-boot
5    
6  get_boot_splash()  get_boot_splash()
7  {  {
8   if grep "^export GRUB_CMDLINE_BOOTSPLASH=.*splash" ${MROOT}/etc/conf.d/grub   if grep "^export GRUB_CMDLINE_BOOTSPLASH=.*splash" ${MROOT}@@CONFDDIR@@/grub
9   then   then
10   mecho "bootsplash currently enabled"   mecho "bootsplash currently enabled"
11   rvecho "1"   rvecho "1"
# Line 22  set_boot_splash() Line 22  set_boot_splash()
22    
23   case "${action}" in   case "${action}" in
24   enable)   enable)
25   sed -i "s:^\(export GRUB_CMDLINE_BOOTSPLASH=\).*:\1\"splash\":" ${MROOT}/etc/conf.d/grub   sed -i "s:^\(export GRUB_CMDLINE_BOOTSPLASH=\).*:\1\"splash\":" ${MROOT}@@CONFDDIR@@/grub
26   helper_boot_rebuild_bootconfig   helper_boot_rebuild_bootconfig
27   mecho "bootsplash enabled"   mecho "bootsplash enabled"
28   ;;   ;;
29   disable)   disable)
30   sed -i "s:^\(export GRUB_CMDLINE_BOOTSPLASH=\).*:\1\"rd.plymouth=0\":" ${MROOT}/etc/conf.d/grub   sed -i "s:^\(export GRUB_CMDLINE_BOOTSPLASH=\).*:\1\"rd.plymouth=0\":" ${MROOT}@@CONFDDIR@@/grub
31   helper_boot_rebuild_bootconfig   helper_boot_rebuild_bootconfig
32   mecho "bootsplash disabled"   mecho "bootsplash disabled"
33   ;;   ;;
# Line 64  get_boot_theme() Line 64  get_boot_theme()
64  set_boot_theme()  set_boot_theme()
65  {  {
66   local theme="$1"   local theme="$1"
67   local themedir="${MROOT}/usr/share/plymouth/themes"   local themedir="${MROOT}@@DATADIR@@/plymouth/themes"
68   [[ -z ${theme} ]] && help_boot_theme && return 1   [[ -z ${theme} ]] && help_boot_theme && return 1
69    
70   local chrooted   local chrooted

Legend:
Removed from v.2157  
changed lines
  Added in v.2158