Was a bit annoyed with the dual-mode on this 3G stick, where by default the usb storage takes over and hides the modem, so wrote a quick script to allow you to get online in a matter of moments.

Script uses USB ModeSwitch v1.0.2 (source code included) and tested against BT3 Final, in theory it should work for BT4 but I've just not had time to test it..

Tested on Vodafone 3G (Australia) on a EEEPC 701SD.

Automates killing of the usbstorage on the USB device, creating symlink (/dev/ttyUSB0 ==> /dev/modem), copying pppd script into place (/etc/ppp/pppscript), calling pppd, setting opendns servers in resolv.conf.

D/l link: (just add http!)

# tar -xzf vodafone.tar.gz
# cd vodafone
# ./run.sh[*] Logging into /tmp/ppprun.log[*] Dropping USB storage driver[*] Creating symlink for pppd (/dev/ttyUSB0 ==> /dev/modem)
lrwxrwxrwx 1 root root 12 Jun 27 01:17 /dev/modem -> /dev/ttyUSB0[*] Copying pppscript into place[*] Starting dialup... UP![*] Copying OpenDNS servers into resolv.conf[*] Last but least, a ping test!!
ping -c 3 yahoo.com
PING yahoo.com ( 56(84) bytes of data.
64 bytes from b1. .vip.mud.yahoo.com ( icmp_seq=1 ttl=56 time=24.9 ms
64 bytes from b1. .vip.mud.yahoo.com ( icmp_seq=2 ttl=56 time=24.8 ms
64 bytes from b1. .vip.mud.yahoo.com ( icmp_seq=3 ttl=56 time=25.0 ms

--- yahoo.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 24.887/24.934/25.009/0.053 ms
[-] done