Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I've got an obscure cryptographic USB token that works pretty good with Lion except I need to run...

sudo /usr/sbin/pcscd -adf

...each time I want to use it because it doesn't load automatically.

How to make it load at startup?

share|improve this question
1  
    
See also Automatically Load LaunchDaemon? –  Harald Hanche-Olsen Feb 8 '12 at 13:59
    
Also relative Automatically delete a folder daily –  nuc Feb 14 '12 at 13:10
add comment

2 Answers 2

The problem happens, because securityd (which is supposed to load pcscd) does not start it when you insert your card. Try editing /System/Library/LaunchDaemons/com.apple.securityd.plist and add -s aggressive switch.

The section should look like this:

<array>
  <string>/usr/sbin/securityd</string>
  <string>-i</string>
  <string>-s</string>
  <string>aggressive</string>
</array>

and then reboot.

This should set securityd in aggressive card detection mode. If there is a -s off or anything like this, probably just removing it should solve your problem.

Hope this helps.

share|improve this answer
add comment

add the symbol & in the end of the line

share|improve this answer
1  
Welcome to Ask Different! Can you expand on this answer a bit? What will this change and how will it help? Please take a look at the FAQs for more info. Thanks. –  Nathan Greenstein Apr 13 '12 at 15:02
1  
@Georgi, I don't think adding a & will ensure that the daemon gets started automatically after a reboot... –  patrix Apr 14 '12 at 9:51
    
This is totally incorrect. The & symbol sends a command to the background and doesn't in any way change it so that it gets run again the next time the system is starting jobs. –  bmike Nov 20 '12 at 18:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.