scripts: enable-fingerprint targets hyprlock PAM file

Replace /etc/pam.d/gtklock with /etc/pam.d/hyprlock in the TARGETS
array now that hyprlock is the session locker. Update the header
comment to match.
This commit is contained in:
funman300
2026-05-25 11:17:10 -07:00
parent c3bcf19e97
commit 2fcfc62cdd
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/bash
# enable-fingerprint.sh — wire pam_fprintd.so into sudo + gtklock auth stacks.
# enable-fingerprint.sh — wire pam_fprintd.so into sudo + hyprlock auth stacks.
# Idempotent: re-runs are no-ops once the line is present. Run with sudo.
# Prerequisite: fprintd installed and at least one finger enrolled
# (run `fprintd-enroll` as your user first).
@@ -17,7 +17,7 @@ if ! command -v fprintd-enroll >/dev/null 2>&1; then
fi
PAM_LINE="auth sufficient pam_fprintd.so"
TARGETS=(/etc/pam.d/sudo /etc/pam.d/gtklock)
TARGETS=(/etc/pam.d/sudo /etc/pam.d/hyprlock)
for f in "${TARGETS[@]}"; do
if [ ! -f "$f" ]; then