mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
15 lines
261 B
Text
15 lines
261 B
Text
|
#!/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
|
||
|
|