20 |
local action="${CLASS_ARGV[0]}" |
local action="${CLASS_ARGV[0]}" |
21 |
[[ -z ${action} ]] && help_boot_splash && return 1 |
[[ -z ${action} ]] && help_boot_splash && return 1 |
22 |
|
|
23 |
|
# do not allow this on livecd or netboot systems |
24 |
|
if [ -e /dev/mapper/live-rw ] |
25 |
|
then |
26 |
|
eecho "This function is not allowed on live-media or netboot systems." |
27 |
|
return 1 |
28 |
|
fi |
29 |
|
|
30 |
case "${action}" in |
case "${action}" in |
31 |
enable) |
enable) |
32 |
sed -i "s:^\(export GRUB_CMDLINE_BOOTSPLASH=\).*:\1\"splash\":" ${MROOT}@@CONFDDIR@@/grub |
sed -i "s:^\(export GRUB_CMDLINE_BOOTSPLASH=\).*:\1\"splash\":" ${MROOT}@@CONFDDIR@@/grub |