summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2022-12-24 14:52:13 +0100
committerJonas Smedegaard <dr@jones.dk>2022-12-24 14:52:13 +0100
commit7500b2ace7cb3a18df2a95fbac8dfc9f42f12095 (patch)
treeb8975ec4d86d4227319049a73dde641e420007fa
parent93dfb5e150760c3718a5665da5cf917978b8182d (diff)
load keychain and monkeysphere at login only if availability
-rw-r--r--.profile10
1 files 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