blob: 6e795bbccf3d188051d0c7ebc7168c27ae8aa573 [file] [log] [blame]
#!/bin/sh
if [ "$RUNLEVEL" != 1 ]; then
echo "$0: this should only be run by inittab. Run 'diag' instead."
exit 1
fi
if [ "$(kernopt factory)" = 1 ]; then
wait-until-created /dev/"$1"
agetty -n -l /bin/sh -o /sbin/diag -L "$1" 115200 vt100
fi