Add --remove option to fingerprint setup

This commit is contained in:
David Heinemeier Hansson
2025-07-17 14:59:16 -07:00
parent 9467b56be0
commit ef8df30f01

View File

@ -1,5 +1,11 @@
#!/bin/bash
if [[ "--remove" == "$1" ]]; then
yay -Rns --noconfirm fprintd
sudo rm -rf /etc/pam.d/polkit-1
sudo sed -i '/pam_fprintd\.so/d' /etc/pam.d/sudo
echo -e "\e[32mYou've successfully removed the fingerprint setup.\e[0m"
else
yay -S --noconfirm --needed fprintd usbutils
if ! lsusb | grep -Eiq 'fingerprint|synaptics|goodix'; then
@ -34,3 +40,4 @@ EOF
echo -e "\e[31m\nSomething went wrong. Maybe try again?\e[0m"
fi
fi
fi