Aha, thanks. That clears up things quite a bit.
The reason to why I was diving into this was that this rule:
Code: Select all
# Generic entry for all Huawei devices
ATTRS{idVendor}=="12d1", ATTR{bInterfaceNumber}=="00", ATTR{bInterfaceClass}=="08", RUN+="usb_modeswitch '%b/%k'"
didn't work for my Huawei e3372. So I commented that and tried this:
Code: Select all
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f01", RUN+="usb_modeswitch '%b/%k'"
That also failed. But if I changed the RUN to this:
Code: Select all
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f01", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1f01 -c /usr/share/usb_modeswitch/12d1:1f01"
it worked just fine. (I want the modem to be in HiLink mode.)
Have I found a bug? Is this a new, weird modem that I should report somehow? Let me know if you need some info to peg down where it doesn't work.
I'm using version 2.2.0 on Raspbian on RPi.