DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

WWAN Dialer

05.11.2008
| 1966 views |
  • submit to reddit
        This script dials the built-in Verizon WWAN (mobile broadband) modem on my Thinkpad T61.

#!/bin/bash
#
# Dial the WWAN
#

hang_up () {
    echo 
    echo 'WWAN deactivated'
    echo
    exit
}

trap "hang_up" 2

echo 'Activating WWAN'
sudo modprobe -r airprime usbserial
sudo modprobe usbserial vendor=0x1199 product=0x0220
sudo modprobe airprime
sleep 0.5
sudo wvdial