fplearn.sh: a wipe leaves learning off too

Same reason as enrol. A wipe is the start of a controlled sequence, and bringing
the daemon back with learning enabled invites whatever verifies next to begin
folding before anyone intended it.
This commit is contained in:
Jorijn van der Graaf 2026-09-05 02:07:26 +02:00
commit 926295b6be

View file

@ -193,7 +193,10 @@ wipe)
sudo sync sudo sync
sudo sh -c ": > $MAP" sudo sh -c ": > $MAP"
echo "removed $n container(s); index and small containers kept; map cleared" echo "removed $n container(s); index and small containers kept; map cleared"
restart "--learn=1" || exit 1 # Off, like enrol: a wipe is the start of a controlled sequence, and coming
# back with learning on invites the next thing that verifies to start
# folding before anyone intended it.
restart "--learn=0" || exit 1
fprintd-list user 2>&1 | tail -1 fprintd-list user 2>&1 | tail -1
echo "after:"; sizes echo "after:"; sizes
echo; echo "next: fplearn.sh enrol <finger>" ;; echo; echo "next: fplearn.sh enrol <finger>" ;;