aboutsummaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-03-10 22:37:35 -0400
committerBill Nottingham <notting@redhat.com>2008-03-10 22:37:35 -0400
commit5d38179c29282bca01a53480ce9c5ac7cf25fbc4 (patch)
treeccdad221b44b589376a7a81ba8d528e231e16b77 /udev
parentd30faf7315a91a380760c36f198f3f684c3600d9 (diff)
downloadinitscripts-5d38179c29282bca01a53480ce9c5ac7cf25fbc4.tar
initscripts-5d38179c29282bca01a53480ce9c5ac7cf25fbc4.tar.gz
initscripts-5d38179c29282bca01a53480ce9c5ac7cf25fbc4.tar.bz2
initscripts-5d38179c29282bca01a53480ce9c5ac7cf25fbc4.tar.xz
initscripts-5d38179c29282bca01a53480ce9c5ac7cf25fbc4.zip
Add a helper that checks for serial and serial-like consoles
This works by doing checks from udev that emit upstart events. upstart listens to these events and starts a getty if needed.
Diffstat (limited to 'udev')
-rw-r--r--udev/rules.d/10-console.rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/udev/rules.d/10-console.rules b/udev/rules.d/10-console.rules
index da0cfe0d..6e8c4587 100644
--- a/udev/rules.d/10-console.rules
+++ b/udev/rules.d/10-console.rules
@@ -1 +1,9 @@
+# Console initialization - keyboard, font, etc.
KERNEL=="tty0", RUN+="/lib/udev/console_init %k"
+
+# Check and set up serial and serial-like consoles if necessary
+KERNEL=="console", RUN+="/lib/udev/console_check %k"
+KERNEL=="ttySG*", RUN+="/lib/udev/console_check %k"
+KERNEL=="xvc*", RUN+="/lib/udev/console_check %k"
+KERNEL=="hvsi*", RUN+="/lib/udev/console_check %k"
+KERNEL=="hvc*", RUN+="/lib/udev/console_check %k"