summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-12-06 11:03:00 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-12-06 11:03:00 -0500
commit39ae328c035ac8928049fff0dc346418677656f8 (patch)
tree82cb70ae0afe5b9bbc2954df55e81d7bf57d42f2
parent1d72c16c1f1b3d540ba51636dde5cc3caf8a9bb6 (diff)
login: be more verbose about GPG
-rw-r--r--.config/login.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/.config/login.sh b/.config/login.sh
index 3dad752..8f06b63 100644
--- a/.config/login.sh
+++ b/.config/login.sh
@@ -1,3 +1,4 @@
+
#!/bin/bash
# ~/.profile: executed by the command interpreter for login shells.
# Should be whether logging in graphically or not.
@@ -41,13 +42,17 @@ fi
# GPG
if [[ -z $GPGKEY ]] && [[ -f "${HOME}/.gnupg/gpg.conf" ]]; then
+ echo 'login: Setting GPGKEY'
export GPGKEY=`sed -nr 's/^\s*default-key\s+//p' "${HOME}/.gnupg/gpg.conf"`
fi
if [[ -z "$(pgrep -u `whoami` gpg-agent)" ]] && [[ -n $XDG_RUNTIME_DIR ]] && type gpg-agent &>/dev/null; then
+ echo 'login: Starting gpg-agent'
mkdir -p "${XDG_RUNTIME_DIR}/sessions"
- gpg-agent --daemon --write-env-file "${XDG_RUNTIME_DIR}/sessions/gpg" &>/dev/null
+ gpg-agent --daemon --write-env-file "${XDG_RUNTIME_DIR}/sessions/gpg" >/dev/null
fi
if [[ -f "${XDG_RUNTIME_DIR}/sessions/gpg" ]]; then
+ echo 'login: Setting gpg-agent info:'
+ cat "${XDG_RUNTIME_DIR}/sessions/gpg"
. "${XDG_RUNTIME_DIR}/sessions/gpg"
export GPG_AGENT_INFO
#export SSH_AUTH_SOCK