From caca8b6f7f1006ef2a8f785765f1d9b7b90de803 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Sun, 4 Feb 2024 21:06:03 +0530 Subject: Fingerprint Lock system using phone --- unlock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unlock') 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" -- cgit v1.2.3-59-g8ed1b