about summary refs log tree commit diff
path: root/services/agetty-generic/run
diff options
context:
space:
mode:
Diffstat (limited to 'services/agetty-generic/run')
-rwxr-xr-xservices/agetty-generic/run9
1 files changed, 8 insertions, 1 deletions
diff --git a/services/agetty-generic/run b/services/agetty-generic/run
index 98cc190..9a34297 100755
--- a/services/agetty-generic/run
+++ b/services/agetty-generic/run
@@ -1,3 +1,10 @@
 #!/bin/sh
 tty=${PWD##*-}
-exec setsid agetty $tty linux
+if [ -x /sbin/getty ]; then
+	# busybox
+	GETTY=getty
+elif [ -x /sbin/agetty ]; then
+	# util-linux
+	GETTY=agetty
+fi
+exec setsid $GETTY $tty 38400 linux