chiark
/
gitweb
/
~mdw
/
distorted-keys
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
keys.list-keepers: Identify the current recovery key instance.
[distorted-keys]
/
keys.list-keepers
diff --git
a/keys.list-keepers
b/keys.list-keepers
index 297c83e88949d49336b3431441efd3f959ff1d0b..da47af48e9dfb150641cf3e53efb1d21269b4d82 100755
(executable)
--- a/
keys.list-keepers
+++ b/
keys.list-keepers
@@
-45,6
+45,10
@@
if [ -d $KEYS/recov ]; then
for r in *; do
if [ ! -d $r ]; then continue; fi
+ ## Collect the current instance number.
+ rcur=$(readlink $r/current)
+ eval rcur_$r=\$rcur
+
## Now work through the instances of this recovery key.
for ri in $r/*; do