diff --git a/security_fixes.sh b/security_fixes.sh index b642edf..fe54569 100644 --- a/security_fixes.sh +++ b/security_fixes.sh @@ -18,6 +18,7 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 1.2.5 - 2019-04-08 - Allow to run from any terminal, not only SSH. # Version 1.2.4 - 2019-04-08 - Refined the check for standard root password. # Version 1.2.3 - 2019-04-04 - Refined the check for standard root password. # Version 1.2.2 - 2019-04-03 - Updated openssl deb package URL. @@ -38,10 +39,10 @@ then echo "on a MiSTer system." exit 1 fi -if [ "$SSH_CLIENT" == "" ] +if [ "$(tty)" == "not a tty" ] then echo "This script must be run" - echo "from a SSH terminal" + echo "from a SSH/UART terminal" echo "because it will ask" echo "some questions." exit 2 @@ -396,4 +397,4 @@ fi echo "" echo "Done!" echo "You can reboot now for actually applying changes." -exit 0 \ No newline at end of file +exit 0