Lines 42-50
Link Here
|
42 |
|
42 |
|
43 |
src_prepare() { |
43 |
src_prepare() { |
44 |
DOC_CONTENTS=" |
44 |
DOC_CONTENTS=" |
45 |
If your USB modem shows up only as a storage device when you plug it in, |
45 |
USB 2G/3G/LTE modems show up by default only as a CDROM storage device with MS Win |
46 |
then you should install sys-apps/usb_modeswitch, which will automatically |
46 |
drivers when you plug them in. Once the /dev/sr* is 'ejected' their firmware |
47 |
switch it over to USB modem mode whenever you plug it in.\n" |
47 |
switches into modem mode and also their eventual SDcard slot is exposed to the |
|
|
48 |
host computer. While you can use 'eject /dev/sr*' command to that manually |
49 |
sys-apps/usb_modeswitch will do this automatically whenever you plug the device |
50 |
in (that can be seen in syslog records). The USB ID number of the CDROM (/dev/sr*) |
51 |
interface differs from those of the modem (/dev/USB*) and of the SD card reader.\n |
52 |
Use dmesg and lsusb to firgure out IDs of your device.\n |
53 |
For example, firmware of Huawei E3131 must switch from 12d1:15ca to 12d1:1506 to |
54 |
expose its three /dev/ttyUSB* and one /dev/sr* interfaces. The command is: |
55 |
usb_modeswitch -J -v 0x12d1 -p 0x15ca\n" |
48 |
|
56 |
|
49 |
if use policykit; then |
57 |
if use policykit; then |
50 |
DOC_CONTENTS+="\nTo control your modem without needing to enter the root password, |
58 |
DOC_CONTENTS+="\nTo control your modem without needing to enter the root password, |