mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-22 22:58:30 +00:00
Fix test.sh fix for M1
This commit is contained in:
parent
47cad04a32
commit
625ce2bb7c
@ -3168,16 +3168,18 @@ IS_APPLE_SILICON=0
|
||||
|
||||
# handle Apple M1 bugs with optimized kernels
|
||||
|
||||
if [ ${OPTIMIZED} -eq 1 ]; then
|
||||
BIN_sysctl=$(which sysctl)
|
||||
if [ $? -eq 0 ]; then
|
||||
CPU_TYPE=$(sysctl hw.cputype | awk '{print $2}')
|
||||
if [ $(uname) == "Darwin" ]; then
|
||||
if [ ${OPTIMIZED} -eq 1 ]; then
|
||||
BIN_sysctl=$(which sysctl)
|
||||
if [ $? -eq 0 ]; then
|
||||
CPU_TYPE=$(sysctl hw.cputype | awk '{print $2}')
|
||||
|
||||
# with Apple's M1, disable optimized kernel
|
||||
if [ ${CPU_TYPE} -eq 16777228 ]; then
|
||||
OPTIMIZED=0
|
||||
KERNEL_TYPE="Pure"
|
||||
IS_APPLE_SILICON=1
|
||||
# with Apple's M1, disable optimized kernel
|
||||
if [ ${CPU_TYPE} -eq 16777228 ]; then
|
||||
OPTIMIZED=0
|
||||
KERNEL_TYPE="Pure"
|
||||
IS_APPLE_SILICON=1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user