From 0f3d2e86defd7560eb0e1d8dc7754cc0d485055b Mon Sep 17 00:00:00 2001 From: Jeremias Volker Date: Mon, 23 Sep 2019 03:52:24 +0200 Subject: [PATCH 1/2] Fixes black window on SSH login Fixes #42 --- scripts/autoboot.sh | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/scripts/autoboot.sh b/scripts/autoboot.sh index 0ee624d..be9b5ac 100755 --- a/scripts/autoboot.sh +++ b/scripts/autoboot.sh @@ -6,10 +6,16 @@ read -t 1 -n 1 key then echo "no openframe" else - # hide the prompt: - PS1="" - # set the terminal text color to black - setterm --foreground black --background black --cursor off --clear all - # start up openframe as a background process - nohup openframe >/dev/null 2>&1 & -fi \ No newline at end of file + if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then + echo "logged in via SSH" + else + echo "logged in not via SSH" + + # hide the prompt: + PS1="" + # set the terminal text color to black + setterm --foreground black --background black --cursor off --clear all + # start up openframe as a background process + nohup openframe >/dev/null 2>&1 & + fi +fi From 579db0636e3ff51f81038185646648ed5459e6c4 Mon Sep 17 00:00:00 2001 From: Jeremias Volker Date: Mon, 23 Sep 2019 16:11:47 +0200 Subject: [PATCH 2/2] Remove echo on autoboot Remove the echo when autoboot is starting to keep output silent. --- scripts/autoboot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/autoboot.sh b/scripts/autoboot.sh index be9b5ac..35f64a2 100755 --- a/scripts/autoboot.sh +++ b/scripts/autoboot.sh @@ -9,7 +9,7 @@ else if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then echo "logged in via SSH" else - echo "logged in not via SSH" + # logged in locally (not via SSH) # hide the prompt: PS1=""