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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user