]>
git.siccegge.de Git - forks/vmdebootstrap.git/blob - examples/auto-serial-console
9304e9865c1952548947b54ae46f5af8171145fd
3 [ -f /etc
/default
/autogetty
] && .
/etc
/default
/autogetty
5 [ 1 -gt $ENABLED ] && exit
7 for arg
in $
(cat /proc
/cmdline
)
18 # check for service which do something on this port
19 if [ -f /etc
/init
/$PORT.conf
];then continue;fi
23 BITS
=${tmp##${SPEED}n}
25 # 8bit serial is default
26 [ -z $BITS ] && BITS
=8
27 [ 8 -eq $BITS ] && GETTY_ARGS
="$GETTY_ARGS -8 "
29 [ -z $SPEED ] && SPEED
='115200,57600,38400,19200,9600'
31 GETTY_ARGS
="$AUTOGETTY_ARGS $GETTY_ARGS $SPEED $PORT"
32 exec /sbin
/getty
$GETTY_ARGS