From 976e1234135f214c9c7bcabfb69726ebdd466273 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 2 Jul 2012 17:26:49 +0900 Subject: [PATCH] more change for stlinkv2 --- README | 4 ++-- tool/stlinkv2.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README b/README index ab64525..352aa84 100644 --- a/README +++ b/README @@ -87,7 +87,7 @@ A9: GnuPG's SCDaemon has problems for handling insertion/removal of card/reader (problems are fixed in trunk). When your newly inserted token is not found by GnuPG, try killing scdaemon and let it to be invoked again. I do: - $ killall -9 scdaemon + $ gpg-connect-agent "SCD KILLSCD" "SCD BYE" /bye and confirm scdaemon doesn't exist, then, $ gpg-connect-agent learn /bye @@ -475,7 +475,7 @@ PyUSB (python-usb package in Debian). If scdaemon is running, please kill it, or you will get "Smartcard Exception" by "Sharing violation". - $ killall -9 scdaemon + $ gpg-connect-agent "SCD KILLSCD" "SCD BYE" /bye In case of PyUSB tool, you need to stop pcscd. diff --git a/tool/stlinkv2.py b/tool/stlinkv2.py index a9df131..e99c80e 100755 --- a/tool/stlinkv2.py +++ b/tool/stlinkv2.py @@ -604,6 +604,6 @@ if __name__ == '__main__': skip_blank_check, status_only, unlock, data) if r == 0: print Fore.WHITE + Back.BLUE + Style.BRIGHT + "SUCCESS" + Style.RESET_ALL - exit(r) + sys.exit(r) except Exception as e: print Back.RED + Style.BRIGHT + repr(e) + Style.RESET_ALL