[tbb-commits] [tor-browser-build/master] Bug 26354: check for SSE2 support in start-tor-browser

gk at torproject.org gk at torproject.org
Wed Jun 13 09:38:04 UTC 2018


commit fb3315fbc961f924012dcf97d346ce9527f85505
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Tue Jun 12 20:02:49 2018 +0200

    Bug 26354: check for SSE2 support in start-tor-browser
---
 projects/tor-browser/RelativeLink/start-tor-browser | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/projects/tor-browser/RelativeLink/start-tor-browser b/projects/tor-browser/RelativeLink/start-tor-browser
index 0590eed..6639f44 100755
--- a/projects/tor-browser/RelativeLink/start-tor-browser
+++ b/projects/tor-browser/RelativeLink/start-tor-browser
@@ -96,6 +96,11 @@ if [ "`id -u`" -eq 0 ]; then
 	exit 1
 fi
 
+if ! grep -q '^flags\s*:.* sse2' /proc/cpuinfo; then
+        complain "Tor Browser requires a CPU with SSE2 support.  Exiting."
+        exit 1
+fi
+
 tbb_usage () {
     printf "\nTor Browser Script Options\n"
     printf "  --verbose         Display Tor and Firefox output in the terminal\n"





More information about the tbb-commits mailing list