Language: Bash
Last Modified: 20080101
Known Issues: -
Description:
This script can be used to dial out using wvdial on Huawei E220. The problem this device have with Linux is that the modem doesn’t behave expectedly if the usb_storage module is loaded. The script tries to unload conflicting modules first before dialing.
Script:
#!/bin/bash
# Change the Dialer in your /etc/wvdial.conf
DIALER="huawei220"
sudo modprobe -r uhci_hcd
sudo modprobe uhci_hcd
echo "Waiting kernel to detect modem device"
# Wait till the kernel recognizes our E220
while [ ! -c /dev/ttyUSB1 ]; do
sleep 1
done
# Start dialing
sudo wvdial $DIALER