summaryrefslogtreecommitdiffstats
path: root/unlock
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 /unlock
parent9d6ac4fa8561f72127b1244d40533488fd1740cd (diff)
downloadecosystem-master.tar.gz
ecosystem-master.tar.bz2
ecosystem-master.zip
Fingerprint Lock system using phoneHEADmaster
Diffstat (limited to 'unlock')
-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"