Add --remove option to fingerprint setup
This commit is contained in:
parent
9467b56be0
commit
ef8df30f01
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user