Better:
#!/bin/ash -
exec </dev/$1 >/dev/$1 2>/dev/$1
stty sane
stty 38400 cs8 -parenb hupcl cread
[ -f /etc/issue ] && sed 's/\\\\/\\/g' </etc/issue
h=`hostname`
echo
unset login
while [ -z "$login" ]; do
echo -n "$h login: "
read login
case "$login" in
-*) unset login
esac
done
exec /bin/login "$login"
-- Snow ^oo^ Cat <snowcat@gd.cs.CSUFresno.EDU> _ -> <- aka Oleg Kibirev <oleg@gd.cs.CSUFresno.EDU> ___(_) _ _)_ / _) \_.-._ |___/ Purr!