blob: 0d2777c129fcd39432c47ed0964217d7def7748d [file] [log] [blame]
#! /bin/sh
echo "Ctrl-a k to exit console"
echo "A session log is created in current directory"
if screen -list | grep "hostconsole" | grep -q -i "Detached"; then
echo "You have an existing detached console session to host, you will be reconnected to that session"
fi
if screen -list | grep "hostconsole" | grep -q -i "Attached"; then
echo "You have an existing attached console session to host, you will be detached from that session and reconnected here instead"
fi
echo "[Enter] to continue"
read a
screen -dR hostconsole -U /dev/ttyS5