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-console/run | |
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-console/run')
-rwxr-xr-x | services/agetty-console/run | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/services/agetty-console/run b/services/agetty-console/run index 5a91e76..9fc6409 100755 --- a/services/agetty-console/run +++ b/services/agetty-console/run @@ -1,2 +1,7 @@ #!/bin/sh -exec agetty console linux +if [ -x /sbin/getty ]; then + GETTY=getty +elif [ -x /sbin/agetty ]; then + GETTY=agetty +fi +exec $GETTY console 38400 linux |