0

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?

gentmatt
  • 49,722

2 Answers2

1

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.

mspasov
  • 6,392
-2

add the symbol & in the end of the line

Georgi
  • 1
  • 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... – nohillside Apr 14 '12 at 09: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