diff --git a/scripts/autoboot.sh b/scripts/autoboot.sh index 0ee624d..35f64a2 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 + # logged in locally (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