#!/bin/sh tty=${PWD##*-} exec setsid /sbin/agetty $([ $tty = tty1 ] && echo --noclear) $tty linux