summaryrefslogtreecommitdiff
path: root/gnome-base/gdm/files/50-ssh-agent-r1
diff options
context:
space:
mode:
Diffstat (limited to 'gnome-base/gdm/files/50-ssh-agent-r1')
-rw-r--r--gnome-base/gdm/files/50-ssh-agent-r110
1 files changed, 10 insertions, 0 deletions
diff --git a/gnome-base/gdm/files/50-ssh-agent-r1 b/gnome-base/gdm/files/50-ssh-agent-r1
new file mode 100644
index 00000000..4d94fb04
--- /dev/null
+++ b/gnome-base/gdm/files/50-ssh-agent-r1
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# add ssh-agent if found
+
+sshagent="`which ssh-agent 2>/dev/null`"
+if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
+ command="$sshagent -- $command"
+elif [ -z "$sshagent" ] ; then
+ echo "$0: ssh-agent not found!"
+fi