Add fingerprint reader selection and lid-based routing
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
if [[ ${EUID} -ne 0 ]]; then
|
||||
echo 'Run as root: sudo ./scripts/uninstall.sh' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
/usr/bin/systemctl disable --now fingerprint-switch.service
|
||||
/usr/bin/rm -f /etc/systemd/system/fprintd.service.d/60-fingerprint-switch.conf
|
||||
/usr/bin/rm -f /etc/systemd/system/fingerprint-switch.service
|
||||
/usr/bin/rm -f /usr/local/bin/fingerprint-switch
|
||||
/usr/bin/rm -f /run/fingerprint-switch/fprintd.env
|
||||
/usr/bin/systemctl daemon-reload
|
||||
/usr/bin/systemctl try-restart fprintd.service
|
||||
echo 'Removed automatic routing. Stock fprintd sees both readers again.'
|
||||
echo 'Enrollments and /etc/fingerprint-switch/mode were preserved.'
|
||||
Reference in New Issue
Block a user