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