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 |
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!" |