2009-10-08 19:41:22 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
autologin=1
|
|
|
|
for opt in "$@" ; do
|
|
|
|
if [ "$opt" = "-l" -o "$opt" = "-n" ] ; then
|
|
|
|
autologin=0
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2012-01-30 14:30:41 +00:00
|
|
|
if [ -x /sbin/agetty ]; then
|
|
|
|
mygetty=/sbin/agetty
|
|
|
|
elif [ -x /sbin/getty ]; then
|
|
|
|
mygetty=/sbin/getty
|
|
|
|
fi
|
|
|
|
|
2009-10-08 19:41:22 +00:00
|
|
|
if [ "$autologin" = "1" ] ; then
|
2012-01-30 14:30:41 +00:00
|
|
|
exec ${mygetty} -n -l /sbin/casper-login $*
|
2009-10-08 19:41:22 +00:00
|
|
|
else
|
2012-01-30 14:30:41 +00:00
|
|
|
exec ${mygetty} $*
|
2009-10-08 19:41:22 +00:00
|
|
|
fi
|
|
|
|
|