11 lines
227 B
Bash
Executable file
11 lines
227 B
Bash
Executable file
#!/bin/sh
|
|
|
|
gpg-connect-agent reloadagent /bye
|
|
|
|
PATH="$PATH:/usr/lib:/usr/libexec:/usr/lib/gnupg"
|
|
keygrip=$(cat "$HOME/.pam-gnupg")
|
|
|
|
echo '{{@@ main_password @@}}' |
|
|
base64 -d |
|
|
gpg-preset-passphrase --preset "$keygrip"
|