Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Starting up gpg-agent script
Date: Sun, 14 Mar 2010 21:31:39
Message-Id: 20100314213003.2c41cdc1@digimed.co.uk
In Reply to: [gentoo-user] Starting up gpg-agent script by Mick
1 On Sun, 14 Mar 2010 20:23:40 +0000, Mick wrote:
2
3 > I am trying this script in /etc/env.d/90gpg-agent:
4 > ================================
5 > if test -f $HOME/.gpg-agent-info && kill -0 `cut -d: -f 2
6 > $HOME/.gpg-agent-info` 2>/dev/null; then
7 > GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info`
8 > export GPG_AGENT_INFO
9 > else
10 > eval `/usr/bin/gpg-agent --daemon`
11 > echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info
12 > fi
13 > ================================
14 >
15 > But when I emerged kgpg I got this error:
16 > ================================
17 > !!! 'ParseError: Invalid token 'test' (not '='):
18 > /etc/env.d/90gpg-agent: line 1 in /etc/env.d/90gpg-agent'
19 > ================================
20 >
21 > Can you please help me correct the above script, I'm not sure
22 > what's wrong with it.
23
24 env-update doesn't evaluate scripts. It expects only variable assignments.
25
26 You mention kgpg, are you using KDE? If so, it takes care of this
27 automatically, you only need to uncomment the relevant lines in the agent
28 startup and shutdown scripts in /etc/kde. Otherwise, put the script in a
29 file in /etc/profile.d.
30
31
32 --
33 Neil Bothwick
34
35 Top Oxymorons Number 17: Clearly misunderstood

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Starting up gpg-agent script Mick <michaelkintzios@×××××.com>