From 7500b2ace7cb3a18df2a95fbac8dfc9f42f12095 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 24 Dec 2022 14:52:13 +0100 Subject: load keychain and monkeysphere at login only if availability --- .profile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.profile b/.profile index 4c3bc86..2f3250d 100644 --- a/.profile +++ b/.profile @@ -29,5 +29,11 @@ if [ -d /usr/lib/ccontrol ]; then fi #DISTCC_HOSTS="localhost 192.168.222.252" -eval `keychain --eval --ignore-missing id_rsa C1A00121` -ssh-add -L | grep -q @ || monkeysphere subkey-to-ssh-agent +if [ -x /usr/bin/keychain ]; then + eval `keychain --eval --ignore-missing id_rsa C1A00121` +else + gpg-connect-agent /bye +fi +if [ -x /usr/bin/monkeysphere ]; then + ssh-add -L | grep -q @ || monkeysphere subkey-to-ssh-agent +fi -- cgit v1.2.3