1#!/bin/sh 2 3SPEED=$1 4DEVICE=$2 5TERM=$3 6 7# busybox' getty does this itself, util-linux' agetty needs extra help 8getty="/sbin/getty" 9case $(readlink -f "${getty}") in 10 */busybox*) 11 ;; 12 *) 13 if [ -x "/usr/bin/setsid" ] ; then 14 setsid="/usr/bin/setsid" 15 fi 16 options="" 17 ;; 18esac 19 20${setsid:-} ${getty} ${options:-} -L $SPEED $DEVICE $TERM 21