From 87f8f39e1e4bf43b2e45ca54ff180041d54fba5b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 3 Nov 2024 17:30:06 +0100 Subject: save shared_secret --- .gitignore | 1 + init | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b02695 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.shared_secret diff --git a/init b/init index c936133..091fa60 100755 --- a/init +++ b/init @@ -1,3 +1,8 @@ #!/bin/bash -ykpersonalize -2 -ochal-resp -ochal-hmac -ohmac-lt64 -oserial-api-visible +cd "$(dirname "$(readlink -e "$0")")" + +echo y \ +| ykpersonalize -2 -ochal-resp -ochal-hmac -ohmac-lt64 -oserial-api-visible 2>&1 \ +| sed 's@^key: h:@@;t;d' \ +> .shared_secret -- cgit v1.2.3-70-g09d2