about summary refs log tree commit diff
diff options
context:
space:
mode:
-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