void-packages/srcpkgs/xbps-casper/files/bin/casper-getty

16 lines
270 B
Plaintext
Raw Normal View History

#! /bin/sh
autologin=1
for opt in "$@" ; do
if [ "$opt" = "-l" -o "$opt" = "-n" ] ; then
autologin=0
fi
done
if [ "$autologin" = "1" ] ; then
exec /sbin/agetty -n -l /sbin/casper-login $*
else
exec /sbin/agetty $*
fi