1
0
mirror of https://github.com/rancher/os.git synced 2025-08-18 14:58:32 +00:00
os/scripts/dockerimages/scripts/console.sh
2015-02-18 19:46:22 -08:00

21 lines
360 B
Bash
Executable File

#!/bin/sh
#if [ -t 1 ]; then
#exec /bin/sh
#else
CLOUD_CONFIG_FILE=/var/lib/rancher/cloud-config
if [ -s $CLOUD_CONFIG_FILE ]; then
cloudinit --from-file $CLOUD_CONFIG_FILE
fi
exec respawn << 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
#fi