└── touchid_check.sh /touchid_check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # 4 | # 5 | #Jamf Pro Extension Attribute to check if TouchID is enabled at the system level 6 | #Use -r instead of -rs to check user-level rather than system level 7 | #swap "functionality" for "unlock" and use $3 to check just the unlock status 8 | #Replace with -c to see a count of fingerprints 9 | #Comment out the if then statements and change the TouchIDStatus= to results= for a 0 or 1 response 10 | # 11 | # 12 | # 13 | TouchIDStatus=`bioutil -rs | grep functionality | awk '{print $4}'` 14 | if [[ "$TouchIDStatus" = "0" ]]; then 15 | result="TouchIDDisabled" 16 | elif [[ "$TouchIDStatus" = "1" ]]; then 17 | result="TouchIDEnabled" 18 | else 19 | result="Error" 20 | fi 21 | echo "$result" 22 | --------------------------------------------------------------------------------