diff options
author | Vincent Batts <vbatts@batts.mine.nu> | 2010-05-11 20:01:46 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:01:46 +0200 |
commit | d14ff37486aa5ce36d0c22dd2a3064b54d2f3f9c (patch) | |
tree | 9bb164f9140013138b5f20e173444a768142ec0e /network/x11-ssh-askpass/xprofile.sample | |
parent | ca43bff4ec0b2f933ac58062447346adea901ca0 (diff) | |
download | slackbuilds-d14ff37486aa5ce36d0c22dd2a3064b54d2f3f9c.tar.gz |
network/x11-ssh-askpass: Added to 12.0 repository
Diffstat (limited to 'network/x11-ssh-askpass/xprofile.sample')
-rw-r--r-- | network/x11-ssh-askpass/xprofile.sample | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/network/x11-ssh-askpass/xprofile.sample b/network/x11-ssh-askpass/xprofile.sample new file mode 100644 index 0000000000..dce0eae0ca --- /dev/null +++ b/network/x11-ssh-askpass/xprofile.sample @@ -0,0 +1,14 @@ +#!/bin/sh + +usessh=${usessh:-yes} + +if test "$usessh" = "yes" -a -d $HOME/.ssh ; then + SSH_ASKPASS="/usr/libexec/x11-ssh-askpass" + if [ -x $SSH_ASKPASS ] ; then + export SSH_ASKPASS + ssh-agent > $HOME/.ssh/agent + . $HOME/.ssh/agent + ssh-add + fi +fi + |