about summary refs log tree commit diff
path: root/services/agetty-tty1/run
blob: dc01b10e306b0381e0de1b358b6db25d1d9f72a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
tty=${PWD##*-}
if [ -x /sbin/getty ]; then
	# busybox
	GETTY=getty
elif [ -x /sbin/agetty ]; then
	# util-linux
	GETTY=agetty
	GETTY_ARGS="--noclear"
fi
exec setsid $GETTY $GETTY_ARGS $tty 38400 linux