pallotron / yubiswitch

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

Fix initial setup problem: Yubikey vs YubiKey #84

Closed crcastle closed 5 years ago

crcastle commented 5 years ago

I just got a new YubiKey Nano 5C, and the setup process wasn't working for me because I couldn't find the Product ID and Vendor ID. I traced it to a case sensitivity issue with grep.

Here is the YubiKey output of lsusb:

Bus 020 Device 001: ID 1050:0407 1050 YubiKey OTP+FIDO+CCID

Note the upper case "K" in YubiKey.

Similar with ioreg -p IOUSB -l -w 0 -x

"USB Product Name" = "YubiKey OTP+FIDO+CCID"

Looking at the Yubico website, the product name is actually YubiKey with a capital K.

I've made the grep command case-insensitive in the setup instructions so that both Yubikey and YubiKey are found. -i ignores case in both GNU grep and grep included in macOS.

pallotron commented 5 years ago

thanks for the PR