remove exit to terminal

This commit is contained in:
rootzoll
2021-12-18 00:55:49 +01:00
parent dee23e98b6
commit efb53e8e76

View File

@@ -15,18 +15,6 @@ infoFile="/home/admin/raspiblitz.info"
source ${infoFile}
source <(/home/admin/_cache.sh get state message)
# only check when first pramater is "newsshsession" (calling from bash.rc)
if [ "$1" == "newsshsession" ]; then
# if already one ssh session is open - ask on the second to exit to terminal
source <(sudo /home/admin/config.scripts/blitz.ssh.sh sessions)
if [ "${ssh_session_count}" != "" ] && [ "${ssh_session_count}" != "1" ]; then
echo "####################################################################"
echo "# You already have another SSH session open ... exiting to terminal."
echo "# To open main menu type command: raspiblitz"
exit 0
fi
fi
# check that basic system phase/state information is available
if [ "${setupPhase}" == "" ] || [ "${state}" == "" ]; then
echo "setupPhase(${setupPhase}) state(${state})"