Never been to DZone Snippets before?

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

About this user

Jason McVetta

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

WWAN Dialer

This script dials the built-in Verizon WWAN (mobile broadband) modem on my Thinkpad T61.

   1  
   2  #!/bin/bash
   3  #
   4  # Dial the WWAN
   5  #
   6  
   7  hang_up () {
   8      echo 
   9      echo 'WWAN deactivated'
  10      echo
  11      exit
  12  }
  13  
  14  trap "hang_up" 2
  15  
  16  echo 'Activating WWAN'
  17  sudo modprobe -r airprime usbserial
  18  sudo modprobe usbserial vendor=0x1199 product=0x0220
  19  sudo modprobe airprime
  20  sleep 0.5
  21  sudo wvdial
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS