-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent GPG-agent autostart on RPi-s
- Loading branch information
1 parent
0b7b852
commit 80dbf8f
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Don't autostart the GPG agent on RPi-devices – the agent is forwarded from the | ||
# local machine | ||
|
||
gpg() { | ||
command gpg --no-autostart "$@" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Mask all GPG agent related units – the RPi-devices use a socket forwarded from | ||
# the local machine. Unintentionally starting gpg-agent messes with this setup; | ||
# there's a script in "📂 .bashrc.d" which aims to prevent regular gpg | ||
# invocations from starting an agent too. | ||
|
||
systemctl --user mask \ | ||
gpg-agent.service \ | ||
gpg-agent.socket \ | ||
gpg-agent-ssh.socket \ | ||
gpg-agent-extra.socket \ | ||
gpg-agent-browser.socket |