mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-18 04:40:56 +02:00
zero-system: third time is the charm
This commit is contained in:
parent
9607f2af4b
commit
cff3d7e45f
1 changed files with 4 additions and 13 deletions
|
|
@ -59,26 +59,17 @@ bindkey "\eOF" end-of-line
|
|||
#bindkey "\eOc" forward-word
|
||||
|
||||
if [ "${USER}" != "root" ]; then
|
||||
keys=""
|
||||
if [ -r ~/.ssh/id_ed25519_sk_green ]; then
|
||||
keys="~/.ssh/id_ed25519_sk_green"
|
||||
else
|
||||
if [ ! -r ~/.ssh/id_ed25519_sk_green ]; then
|
||||
printf "This system is missing your yk5cgreen primary key id_ed25519_sk_green\n"
|
||||
fi
|
||||
if [ -r ~/.ssh/id_ed25519_sk_red ]; then
|
||||
keys="${keys} ~/.ssh/id_ed25519_sk_red"
|
||||
else
|
||||
if [ ! -r ~/.ssh/id_ed25519_sk_red ]; then
|
||||
printf "This system is missing your yk5cred backup key id_ed25519_sk_red\n"
|
||||
fi
|
||||
if [ -r ~/.ssh/gentoo_rsa ]; then
|
||||
keys="${keys} ~/.ssh/gentoo_rsa"
|
||||
else
|
||||
if [ ! -r ~/.ssh/gentoo_rsa ]; then
|
||||
printf "This system is missing your old key gentoo_rsa\n"
|
||||
fi
|
||||
|
||||
if [ -n "${keys}" ]; then
|
||||
eval $(keychain --eval ${keys})
|
||||
fi
|
||||
eval $(keychain --eval --ignore-missing ~/.ssh/id_ed25519_sk_green ~/.ssh/id_ed25519_sk_red ~/.ssh/gentoo_rsa)
|
||||
GPG_TTY=$(tty)
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue