diff options
author | Juan RP <xtraeme@gmail.com> | 2014-09-20 09:41:49 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-09-20 09:41:49 +0200 |
commit | 530f96ae0cb05676a64da2cb6f6a0341ed550d8a (patch) | |
tree | 50b8afc94f30332e618acf9963974e8c6345cd55 /services/agetty-tty1 | |
parent | 80419bfd67563e92185a1a1636f99bf14f50db19 (diff) | |
download | runit-void-530f96ae0cb05676a64da2cb6f6a0341ed550d8a.tar.gz runit-void-530f96ae0cb05676a64da2cb6f6a0341ed550d8a.tar.xz runit-void-530f96ae0cb05676a64da2cb6f6a0341ed550d8a.zip |
services/agetty-*: make these work with busybox getty too.
Diffstat (limited to 'services/agetty-tty1')
-rwxr-xr-x | services/agetty-tty1/run | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/services/agetty-tty1/run b/services/agetty-tty1/run index 5c4dab1..dc01b10 100755 --- a/services/agetty-tty1/run +++ b/services/agetty-tty1/run @@ -1,3 +1,11 @@ #!/bin/sh tty=${PWD##*-} -exec setsid agetty $([ $tty = tty1 ] && echo --noclear) $tty linux +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 |