10i18n/parse-i18n.sh: run console_init directly if /dev/tty0 exists

master
Harald Hoyer 2010-10-29 18:38:55 +02:00
parent 5ce6642fed
commit 07ecac56da
1 changed files with 7 additions and 0 deletions

View File

@ -30,3 +30,10 @@ if [ -f /etc/locale.conf ]; then
export LANG
export LC_ALL
fi

if [ -e /dev/tty0 ]; then
# if the device already exists, yes
# clear the udev rules and run it
/lib/udev/console_init /dev/tty0
> /etc/udev/rules.d/10-console.rules
fi