#!/bin/sh # Open console for testing if [ -c /dev/$2 ] then PS1='bash# ' /sbin/getty -L $1 $2 xterm -n -l /bin/bash fi