5 # initramfs-tools header
23 # this bottom script currently only works with upstart
24 if [ ! -d /root/etc/init ]
29 . /scripts/live-functions
33 for ARGUMENT in $(cat /proc/cmdline)
37 tty="${ARGUMENT#serialtty=}"
39 log_begin_msg "Setting up a serial tty..."
41 cat > /root/etc/init/${tty}.conf <<EOF
42 start on stopped rc RUNLEVEL=[2345]
43 stop on runlevel [!2345]
46 exec /sbin/getty -L 115200 ${tty} vt100