Annotation of /mcore-src/trunk/mcore-tools/daemon/client/include/boot.client.class
Parent Directory | Revision Log
Revision 2085 -
(hide annotations)
(download)
Fri May 10 13:16:21 2013 UTC (11 years ago) by niro
File size: 1042 byte(s)
Fri May 10 13:16:21 2013 UTC (11 years ago) by niro
File size: 1042 byte(s)
-honor $MROOT variable
1 | niro | 1918 | # $Id$ |
2 | |||
3 | provide basic-boot | ||
4 | niro | 2079 | require basic-splash |
5 | niro | 1918 | |
6 | helper_boot_rebuild_bootconfig() | ||
7 | { | ||
8 | local grubconf="/boot/grub/grub.cfg" | ||
9 | niro | 2085 | local chrooted |
10 | niro | 1918 | |
11 | niro | 2085 | if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]] |
12 | then | ||
13 | chrooted="system_chroot" | ||
14 | fi | ||
15 | |||
16 | niro | 1918 | mount /boot &> /dev/null |
17 | niro | 2085 | ${chrooted} grub-mkconfig -o ${grubconf} |
18 | niro | 1918 | 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 |