pallotron / yubiswitch

OSX status bar application to enable/disable Yubikey Nano
Other
871 stars 65 forks source link

Single command to find the product and vendor ids #83

Closed ChrisCarini closed 5 years ago

ChrisCarini commented 5 years ago

Changing the one-liner command(s) to find the product and vendor ids from being separate commands to a single command.

jamiegs commented 5 years ago

I've got a newer Yubikey and it's listed as YubiKey rather than Yubikey

Making the grep case-insensitive with -i would make it work with either capitalization. ioreg -p IOUSB -l -w 0 -x | grep Yubikey -i -A10 | grep 'idProduct\|idVendor'