Merge pull request #51 from anoo1/wdtimer
Fix host watchdog timer taking double the time to expire
diff --git a/bin/Palmetto.py b/bin/Palmetto.py
index ee95999..7172364 100755
--- a/bin/Palmetto.py
+++ b/bin/Palmetto.py
@@ -19,7 +19,7 @@
'HOST_POWERED_ON',
'HOST_BOOTING',
'HOST_BOOTED',
- 'HOST_POWERED_DOWN',
+ 'HOST_POWERED_OFF',
]
EXIT_STATE_DEPEND = {
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