Permalink
Browse files

add task for killing pcscd

  • Loading branch information...
1 parent 7d699c0 commit 3027b14dd7b3511cf45c8585f25a3d115d3ab663 @tenderlove committed Aug 4, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 Rakefile
View
@@ -21,4 +21,9 @@ RET = Rake::ExtensionTask.new("nfc", HOE.spec) do |ext|
ext.lib_dir = File.join('lib', 'nfc')
end
+task :kill do
+ pid = `sudo launchctl list | grep pcscd`[/^\d+/]
+ `sudo kill #{pid}` if pid
+end
+
# vim: syntax=Ruby

0 comments on commit 3027b14

Please sign in to comment.