18 lines
658 B
Bash
Executable File
18 lines
658 B
Bash
Executable File
#!/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.'
|