Contents of /mcore-src/trunk/mcore-tools/src/modules/grub2/boot.client.class.in
Parent Directory | Revision Log
Revision 2181 -
(show annotations)
(download)
Fri Jan 10 14:21:50 2014 UTC (10 years, 8 months ago) by niro
File size: 1042 byte(s)
Fri Jan 10 14:21:50 2014 UTC (10 years, 8 months ago) by niro
File size: 1042 byte(s)
-moved daemon/client/include/boot.client.class to src/modules/grub2/boot.client.class.in
1 | # $Id$ |
2 | |
3 | provide basic-boot |
4 | require basic-splash |
5 | |
6 | helper_boot_rebuild_bootconfig() |
7 | { |
8 | local grubconf="/boot/grub/grub.cfg" |
9 | local chrooted |
10 | |
11 | if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]] |
12 | then |
13 | chrooted="system_chroot" |
14 | fi |
15 | |
16 | mount /boot &> /dev/null |
17 | ${chrooted} grub-mkconfig -o ${grubconf} |
18 | umount /boot &> /dev/null |
19 | } |
20 | |
21 | help_boot_splash() |
22 | { |
23 | mecho "get boot.splash" |
24 | mecho " Shows the state of bootsplash" |
25 | mecho |
26 | mecho "set boot.splash [action]" |
27 | mecho " Enables or disables a fancy splashscreen at boot time." |
28 | mecho " Available actions:" |
29 | mecho " enable - enables bootsplash" |
30 | mecho " disable - disables bootsplash" |
31 | } |
32 | |
33 | help_boot_theme() |
34 | { |
35 | mecho "get boot.theme [action]" |
36 | mecho " Shows current selected or system-wide available bootsplash themes." |
37 | mecho " Available actions:" |
38 | mecho " system - shows available themes on the system" |
39 | mecho " current - shows the currently used theme of bootsplash" |
40 | mecho |
41 | mecho "set boot.theme [theme]" |
42 | mecho " Selects the theme which will be used on system startup by bootsplash." |
43 | } |
44 |