Merge pull request #52 from anoo1/palmoff

Replace HOST_POWERED_DOWN with HOST_POWERED_OFF state in Palmetto
diff --git a/bin/hconsole b/bin/hconsole
index 7652dbc..0d2777c 100755
--- a/bin/hconsole
+++ b/bin/hconsole
@@ -2,6 +2,12 @@
 
 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 -U /dev/ttyS5
+screen -dR hostconsole -U /dev/ttyS5