aboutsummaryrefslogtreecommitdiffstats
path: root/event.d/serial
diff options
context:
space:
mode:
Diffstat (limited to 'event.d/serial')
-rw-r--r--event.d/serial11
1 files changed, 11 insertions, 0 deletions
diff --git a/event.d/serial b/event.d/serial
new file mode 100644
index 00000000..6c29af04
--- /dev/null
+++ b/event.d/serial
@@ -0,0 +1,11 @@
+
+start on fedora.serial-console-available *
+stop on runlevel [016]
+
+instance
+exec /sbin/agetty /dev/$1 $2 vt100-nav
+post-stop script
+ if [ "$UPSTART_EVENT" != "${UPSTART_EVENT##fedora.serial-console-available}" ]; then
+ initctl emit --no-wait fedora.serial-console-available $1 $2
+ fi
+end script