Listing 1. autologin

#!/bin/bash
exec 0</dev/$1 1>/dev/$1 2>&1
cat /etc/issue
shift
exec $*