Skip to content

Instantly share code, notes, and snippets.

@DeviaVir
Created March 25, 2016 10:25
Show Gist options
  • Save DeviaVir/24c1dc7e5646bd7c69cb to your computer and use it in GitHub Desktop.
Save DeviaVir/24c1dc7e5646bd7c69cb to your computer and use it in GitHub Desktop.
~
#!/bin/bash
echo "kill gpg-agent"
code=0
while [ 1 -ne $code ]; do
killall gpg-agent
code=$?
sleep 1
done
echo "kill ssh"
killall ssh
echo "kill ssh muxers"
for pid in `ps -ef | grep ssh | grep -v grep | awk '{print $2}'`; do
kill $pid
done
echo "restart gpg-agent"
eval $(gpg-agent --daemon)
echo
echo "All done. Now unplug / replug the NEO token."
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment