summary refs log tree commit diff
path: root/services
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-03-31 17:23:14 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2015-04-01 14:46:43 +0200
commit25f2e71801f1a48d6a1e496a0e4ff340f1bce505 (patch)
tree04a81e5ebb4cabfce76d47360d9718f10649a78d /services
parentf6f0e1ccb0a7e15acad6509d2d87f0268bb65f6f (diff)
downloadrunit-void-25f2e71801f1a48d6a1e496a0e4ff340f1bce505.tar.gz
runit-void-25f2e71801f1a48d6a1e496a0e4ff340f1bce505.tar.xz
runit-void-25f2e71801f1a48d6a1e496a0e4ff340f1bce505.zip
services: Refactor agetty-serial
Diffstat (limited to 'services')
-rw-r--r--services/agetty-serial/conf7
l---------[-rwxr-xr-x]services/agetty-serial/run4
l---------services/agetty-ttyAMA0/conf1
l---------services/agetty-ttyAMA0/run2
l---------services/agetty-ttyS0/conf1
l---------services/agetty-ttyS0/run2
l---------services/agetty-ttyUSB0/conf1
l---------services/agetty-ttyUSB0/run2
8 files changed, 14 insertions, 6 deletions
diff --git a/services/agetty-serial/conf b/services/agetty-serial/conf
new file mode 100644
index 0000000..7e064af
--- /dev/null
+++ b/services/agetty-serial/conf
@@ -0,0 +1,7 @@
+if [ -x /sbin/getty ]; then
+	# util-linux specific settings
+	GETTY_ARGS="-8 -L"
+fi
+
+baud_rate=115200
+term_name=vt100
diff --git a/services/agetty-serial/run b/services/agetty-serial/run
index 58d795e..26e72f0 100755..120000
--- a/services/agetty-serial/run
+++ b/services/agetty-serial/run
@@ -1,3 +1 @@
-#!/bin/sh
-tty=${PWD##*-}
-exec setsid agetty -8 -L 115200 --noclear $tty vt100
+../agetty-generic/run
\ No newline at end of file
diff --git a/services/agetty-ttyAMA0/conf b/services/agetty-ttyAMA0/conf
new file mode 120000
index 0000000..ba71d1c
--- /dev/null
+++ b/services/agetty-ttyAMA0/conf
@@ -0,0 +1 @@
+../agetty-serial/conf
\ No newline at end of file
diff --git a/services/agetty-ttyAMA0/run b/services/agetty-ttyAMA0/run
index bfaca3e..ffa62a5 120000
--- a/services/agetty-ttyAMA0/run
+++ b/services/agetty-ttyAMA0/run
@@ -1 +1 @@
-/etc/sv/agetty-serial/run
\ No newline at end of file
+../agetty-serial/run
\ No newline at end of file
diff --git a/services/agetty-ttyS0/conf b/services/agetty-ttyS0/conf
new file mode 120000
index 0000000..ba71d1c
--- /dev/null
+++ b/services/agetty-ttyS0/conf
@@ -0,0 +1 @@
+../agetty-serial/conf
\ No newline at end of file
diff --git a/services/agetty-ttyS0/run b/services/agetty-ttyS0/run
index bfaca3e..ffa62a5 120000
--- a/services/agetty-ttyS0/run
+++ b/services/agetty-ttyS0/run
@@ -1 +1 @@
-/etc/sv/agetty-serial/run
\ No newline at end of file
+../agetty-serial/run
\ No newline at end of file
diff --git a/services/agetty-ttyUSB0/conf b/services/agetty-ttyUSB0/conf
new file mode 120000
index 0000000..ba71d1c
--- /dev/null
+++ b/services/agetty-ttyUSB0/conf
@@ -0,0 +1 @@
+../agetty-serial/conf
\ No newline at end of file
diff --git a/services/agetty-ttyUSB0/run b/services/agetty-ttyUSB0/run
index bfaca3e..ffa62a5 120000
--- a/services/agetty-ttyUSB0/run
+++ b/services/agetty-ttyUSB0/run
@@ -1 +1 @@
-/etc/sv/agetty-serial/run
\ No newline at end of file
+../agetty-serial/run
\ No newline at end of file