Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/daemon/client/include/plymouth.client.class

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

revision 2085 by niro, Fri May 10 11:37:38 2013 UTC revision 2086 by niro, Fri May 10 13:16:45 2013 UTC
# Line 40  get_boot_theme() Line 40  get_boot_theme()
40   local action="$1"   local action="$1"
41   local i   local i
42    
43     local chrooted
44     if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]]
45     then
46     chrooted="system_chroot"
47     fi
48    
49   case "${action}" in   case "${action}" in
50   current) rvecho "$(plymouth-set-default-theme)" ;;   current) rvecho "$(${chrooted} plymouth-set-default-theme)" ;;
51   system)   system)
52   for i in $(plymouth-set-default-theme --list)   for i in $(${chrooted} plymouth-set-default-theme --list)
53   do   do
54   rvecho "${i}"   rvecho "${i}"
55   done   done
# Line 61  set_boot_theme() Line 67  set_boot_theme()
67   local themedir="${MROOT}/usr/share/plymouth/themes"   local themedir="${MROOT}/usr/share/plymouth/themes"
68   [[ -z ${theme} ]] && help_boot_theme && return 1   [[ -z ${theme} ]] && help_boot_theme && return 1
69    
70     local chrooted
71     if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]]
72     then
73     chrooted="system_chroot"
74     fi
75    
76   if [[ -d ${themedir}/${theme} ]]   if [[ -d ${themedir}/${theme} ]]
77   then   then
78   plymouth-set-default-theme ${theme}   ${chrooted} plymouth-set-default-theme ${theme}
79   mecho "Selected theme '${theme}'."   mecho "Selected theme '${theme}'."
80   else   else
81   eecho "Theme '${theme}' not available on this system. Aborted!"   eecho "Theme '${theme}' not available on this system. Aborted!"

Legend:
Removed from v.2085  
changed lines
  Added in v.2086