I am using a 3g dongle and usb_modeswith. It works fine if I plug the device after the Raspbian Os has booted up. The thing is, it does not connect (wvdial doesnt detect modem) , if the modem is already connected to the pi, and I reboot (or power on the device after shutdown -P -h).
What do I do to make the usb mode switch everytime it detects my device connected. I am making a project that does not have a screen, so it is essential that The Pi connects without replugging and/or extra input.
Right now I have to do the following to connect to the internet(using the dongle)
- wait for the pi to boot
- Plug in the modem(replug if already plugged in)
- run usb_modeswitch -c /etc/usb_modeswitch.conf
- run wvdial
Why do I have to do the following ? Isnt there any way to reduce these steps ?