summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-02-04 21:06:03 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-02-04 21:06:03 +0530
commitcaca8b6f7f1006ef2a8f785765f1d9b7b90de803 (patch)
tree9d46463638173cf0e2813cc1db0e7c6947f57af3
parent9d6ac4fa8561f72127b1244d40533488fd1740cd (diff)
downloadecosystem-caca8b6f7f1006ef2a8f785765f1d9b7b90de803.tar.gz
ecosystem-caca8b6f7f1006ef2a8f785765f1d9b7b90de803.tar.bz2
ecosystem-caca8b6f7f1006ef2a8f785765f1d9b7b90de803.zip
Fingerprint Lock system using phoneHEADmaster
-rwxr-xr-xunlock2
1 files changed, 1 insertions, 1 deletions
diff --git a/unlock b/unlock
index 0ed851f..fd7a493 100755
--- a/unlock
+++ b/unlock
@@ -6,7 +6,7 @@ toast() {
}
# Try to unlock
-FINGERPRINT=$(termux-fingerprint | jq -r '.fingerprints[0].fingerprint')
+FINGERPRINT=$(termux-fingerprint | jq '.auth_result | contains("SUCCESS")')
if ( "$FINGERPRINT"); then
ssh pc "pkill slock"
toast "Success"