Skip to content

Instantly share code, notes, and snippets.

@mkotsbak
Created August 4, 2012 01:02

Revisions

  1. mkotsbak created this gist Aug 4, 2012.
    14 changes: 14 additions & 0 deletions connect_qmi.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/bin/bash
    #
    # Requires the following line in /etc/network/interfaces:
    # iface wwan0 inet dhcp
    #

    sudo /etc/init.d/network-manager stop
    echo AT+CGDCONT=1,"IP","internet.netcom.no" > /dev/ttyUSB2

    sudo modprobe qmi_wwan
    # sudo chgrp dialout /dev/cdc_wdm0
    # sudo chmod g+rw /dev/cdc_wdm0
    qmi-network /dev/cdc-wdm0 start
    sudo ifup wwan0