1
0
mirror of https://github.com/rancher/os.git synced 2025-08-18 23:09:04 +00:00
os/scripts/dockerimages/scripts/console.sh
2015-02-19 20:05:43 -07:00

19 lines
356 B
Bash
Executable File

#!/bin/sh
CLOUD_CONFIG_FILE=/var/lib/rancher/cloud-config
if [ -s $CLOUD_CONFIG_FILE ]; then
cloud-init --from-file $CLOUD_CONFIG_FILE
fi
cat > /etc/respawn.conf << EOF
/sbin/getty 115200 tty1
/sbin/getty 115200 tty2
/sbin/getty 115200 tty3
/sbin/getty 115200 tty4
/sbin/getty 115200 tty5
/sbin/getty 115200 tty6
EOF
exec respawn -f /etc/respawn.conf