#!/bin/bash # Remove the phase-1 fprintd shim unit; the packaged fprintd daemon is # D-Bus activated again on demand. set -euo pipefail SELF_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" UNIT=/etc/systemd/system/fprintd.service if [ "$(id -u)" != "0" ]; then echo "uninstall.sh: run as root (sudo $0)" >&2 exit 1 fi systemctl stop fprintd 2>/dev/null || true if [ -f "$UNIT" ]; then rm -f "$UNIT" echo "removed $UNIT" else echo "no local unit at $UNIT (nothing to do)" fi systemctl daemon-reload systemctl reset-failed fprintd 2>/dev/null || true echo "Done. fprintd-list will show 'No devices available' again until reinstalled."