patches/tsoljdslabel-02-ssh-agent.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 12873 598c05bd6a22
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12873
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     1
--- tsoljdslabel-0.6.2/Xsession.tjds.bak	2008-07-21 16:40:43.656911000 +0800
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     2
+++ tsoljdslabel-0.6.2/Xsession.tjds	2008-07-21 16:41:08.314030000 +0800
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     3
@@ -38,12 +38,4 @@
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     4
     echo "$0: dbus-launch not found."
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     5
 fi
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     6
 
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     7
-# Use ssh-agent if available.
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     8
-#
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     9
-if [ -x "/usr/bin/ssh-agent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    10
-    command="/usr/bin/ssh-agent -- $command"
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    11
-else
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    12
-    echo "$0: ssh-agent not found."
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    13
-fi
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    14
-
598c05bd6a22 2008-07-22 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    15
 exec $command