console: fix plymouthd check
This commit is contained in:
parent
4038a7e811
commit
72dd025616
@ -4,28 +4,34 @@
|
|||||||
. $rc_functions
|
. $rc_functions
|
||||||
|
|
||||||
INITTY="0 1 2 3 4 5 6"
|
INITTY="0 1 2 3 4 5 6"
|
||||||
|
PLYMOUTHD=/sbin/plymouthd
|
||||||
|
PLYMOUTH=/bin/plymouth
|
||||||
|
|
||||||
[ -c /dev/zero ] || mknod -m 0666 /dev/zero c 1 5
|
[ -c /dev/zero ] || mknod -m 0666 /dev/zero c 1 5
|
||||||
[ -c /dev/ptmx ] || mknod -m 0666 /dev/ptmx c 5 2
|
[ -c /dev/ptmx ] || mknod -m 0666 /dev/ptmx c 5 2
|
||||||
for tty in 0 1 2 3 4 5 6; do
|
for tty in 0 1 2 3 4 5 6; do
|
||||||
[ -c /dev/tty$tty ] || mknod -m 0620 /dev/tty$tty c 4 $tty
|
[ -c /dev/tty$tty ] || mknod -m 0620 /dev/tty$tty c 4 $tty
|
||||||
done
|
done
|
||||||
[ -e /dev/systty ] || ln -s tty0 /dev/systty
|
|
||||||
[ -c /dev/fb0 ] || mknod -m 0660 /dev/fb0 c 29 0
|
|
||||||
[ -e /dev/fb ] || ln -s fb0 /dev/fb
|
|
||||||
|
|
||||||
echo -n "Setting i18n, keyboard and console: "
|
echo -n "Setting i18n, keyboard and console: "
|
||||||
for tty in $INITTY; do
|
for tty in $INITTY; do
|
||||||
/sbin/console_init tty$tty
|
/sbin/console_init tty$tty
|
||||||
done
|
done
|
||||||
|
evaluate_retval
|
||||||
|
echo
|
||||||
|
|
||||||
[ -e $PLYMOUTHD ] || exit 0
|
[ -e $PLYMOUTHD ] || exit 0
|
||||||
|
|
||||||
# do nothing if plymouth was already started in initramfs
|
# do nothing if plymouth was already started in initramfs
|
||||||
pidof $PLYMOUTHD >/dev/null && exit 0
|
pidof plymouthd >/dev/null && exit 0
|
||||||
|
|
||||||
echo -n "Starting plymouth daemon: "
|
echo -n "Starting plymouth daemon: "
|
||||||
mkdir -m 0755 /run/plymouth
|
|
||||||
|
[ -e /dev/systty ] || ln -s tty0 /dev/systty
|
||||||
|
[ -c /dev/fb0 ] || mknod -m 0660 /dev/fb0 c 29 0
|
||||||
|
[ -e /dev/fb ] || ln -s fb0 /dev/fb
|
||||||
|
|
||||||
|
mkdir -p -m 0755 /run/plymouth
|
||||||
$PLYMOUTHD --attach-to-session --pid-file /run/plymouth/pid
|
$PLYMOUTHD --attach-to-session --pid-file /run/plymouth/pid
|
||||||
evaluate_retval
|
evaluate_retval
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user