Created
March 25, 2016 10:25
-
-
Save DeviaVir/24c1dc7e5646bd7c69cb to your computer and use it in GitHub Desktop.
~
This file contains hidden or 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
#!/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