b4693a8e IB |
1 | #!/bin/bash |
2 | |
d4357f69 IB |
3 | if read proto cookie && [ -n "$DISPLAY" ]; then |
4 | if [ `echo $DISPLAY | cut -c1-10` = "localhost:" ]; then |
5 | echo add unix:`echo $DISPLAY | cut -c11-` $proto $cookie |
6 | else |
7 | echo add $DISPLAY "$protocol" "$cookie" |
8 | fi | xauth -q - |
b4693a8e |
9 | fi |