mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-28 12:49:25 +00:00
Add --remove option to fingerprint setup
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/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
|
yay -S --noconfirm --needed fprintd usbutils
|
||||||
|
|
||||||
if ! lsusb | grep -Eiq 'fingerprint|synaptics|goodix'; then
|
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"
|
echo -e "\e[31m\nSomething went wrong. Maybe try again?\e[0m"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user