blob: 71220ea2e6020094e2bbf6bc959a0ca8377221a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
diff --git a/gentoo/initrd.splash b/gentoo/initrd.splash
index 5871ba6..e16cba4 100644
--- a/gentoo/initrd.splash
+++ b/gentoo/initrd.splash
@@ -7,23 +7,23 @@
# This file is a part of splashutils.
#
# NOTE: The code here has to be compatible with ash and with the busybox
-# versions of all the standard system utilities. That means: no
+# versions of all the standard system utilities. That means: no
# extended regular expressions, no pattern substitution in variables,
# and no fancy GNU command line options.
splash() {
local cmd="$1"
splash_setup
-
+
[ ! -x /sbin/splash_helper ] && return
[ "${SPLASH_MODE_REQ}" != 'silent' ] && return
case "${cmd}" in
set_msg)
- export BOOT_MSG="$2"
+ export BOOT_MSG="$2"
/sbin/splash_helper 2 'repaint'
;;
- init)
+ init)
if [ -n "$2" ]; then
export BOOT_MSG="$2"
elif [ "${CDROOT}" -eq '1' ]; then
@@ -34,19 +34,23 @@ splash() {
/sbin/splash_helper 2 'repaint'
;;
verbose)
- /bin/chvt 1
+ if [ -x /bin/chvt ]; then
+ /bin/chvt 1
+ elif [ -x /bin/busybox ]; then
+ /bin/busybox chvt 1
+ fi
echo "verbose"
;;
esac
}
splash_setup() {
- # If it's already set up, let's not waste time on parsing the config
+ # If it's already set up, let's not waste time on parsing the config
# files again
if [ "${SPLASH_THEME}" != '' -a "${SPLASH_TTY}" != '' -a "$1" != 'force' ]; then
return 0
fi
-
+
export SPLASH_MODE_REQ="off"
export SPLASH_THEME="default"
export SPLASH_TTY="16"
@@ -54,7 +58,7 @@ splash_setup() {
if [ -f /proc/cmdline ]; then
options=$(sed -e 's/.*splash=\([^ ]*\).*/\1/' -e 's/,/ /g' /proc/cmdline)
-
+
for i in ${options} ; do
case ${i%:*} in
theme) SPLASH_THEME=${i#*:} ;;
|