]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
10i18n/parse-i18n.sh: run console_init directly if /dev/tty0 exists
authorHarald Hoyer <harald@redhat.com>
Fri, 29 Oct 2010 16:38:55 +0000 (18:38 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 29 Oct 2010 16:38:55 +0000 (18:38 +0200)
modules.d/10i18n/parse-i18n.sh

index 0f267e6456b2073a493f7d6635939ba3affde14b..0a58cc27a6e891acce37296eeab916cd2b030972 100755 (executable)
@@ -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