mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 07:08:19 +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
|
# handle Apple M1 bugs with optimized kernels
|
||||||
|
|
||||||
if [ ${OPTIMIZED} -eq 1 ]; then
|
if [ $(uname) == "Darwin" ]; then
|
||||||
BIN_sysctl=$(which sysctl)
|
if [ ${OPTIMIZED} -eq 1 ]; then
|
||||||
if [ $? -eq 0 ]; then
|
BIN_sysctl=$(which sysctl)
|
||||||
CPU_TYPE=$(sysctl hw.cputype | awk '{print $2}')
|
if [ $? -eq 0 ]; then
|
||||||
|
CPU_TYPE=$(sysctl hw.cputype | awk '{print $2}')
|
||||||
|
|
||||||
# with Apple's M1, disable optimized kernel
|
# with Apple's M1, disable optimized kernel
|
||||||
if [ ${CPU_TYPE} -eq 16777228 ]; then
|
if [ ${CPU_TYPE} -eq 16777228 ]; then
|
||||||
OPTIMIZED=0
|
OPTIMIZED=0
|
||||||
KERNEL_TYPE="Pure"
|
KERNEL_TYPE="Pure"
|
||||||
IS_APPLE_SILICON=1
|
IS_APPLE_SILICON=1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user