File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 77
88skip_bytes=$(( 1010101010 - 1000000000 ))
99
10- if ! grep sse4 /proc/cpuinfo -q; then
11- echo " ERROR: your cpu lacks SSE4 support, cardano will not work"
12- exit 1
13- fi
1410
1511# We could be running as an auto-update from Daedalus ≤5.4.0 using `nix-chroot`,
1612# then our behavior should be different:
@@ -21,6 +17,14 @@ if [ "${1-}" = "--extract" ] && [ -e /nix/var/nix/profiles/profile-@CLUSTER@ ] ;
2117 num_steps=6 # let’s have 6, so that we never reach 100% in UI, and the old update-runner also uses 6
2218fi
2319
20+ if [ -z " $in_chroot " ] ; then
21+ # nix-chroot doesn’t contain `grep`
22+ if ! grep sse4 /proc/cpuinfo -q; then
23+ echo " ERROR: your cpu lacks SSE4 support, cardano will not work"
24+ exit 1
25+ fi
26+ fi
27+
2428echo STATUS " Verifying SHA-256 checksum..."
2529echo PROG 1/$num_steps
2630our_checksum=$( tail -c+$(( skip_bytes+ 1 )) " $0 " | sha256sum | cut -d' ' -f1)
You can’t perform that action at this time.
0 commit comments