Changeset 159

Show
Ignore:
Timestamp:
07/16/08 15:49:25 (4 months ago)
Author:
ken
Message:

adding cellmodem detection framework in init script

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Pyramid/dist/etc/init.d/cellular-modules

    r58 r159  
    11#!/bin/sh 
    22 
    3 modprobe ohci-hcd 
    4 modprobe usbserial   
    5 modprobe airprime 
     3 
     4function DetectCellModem { 
     5        VENDORID=$1  
     6        PRODUCTID=$2 
     7        CARDEXISTS="" 
     8 
     9        exec < /proc/bus/usb/devices 
     10 
     11        while read LINE  
     12        do 
     13 
     14                if echo $LINE | grep "P:" > /dev/null; then 
     15                 
     16                        if echo $LINE | grep $VENDORID > /dev/null & echo $LINE | grep $PRODUCTID > /dev/null;then 
     17                        CARDEXISTS="TRUE" 
     18                        echo $CARDEXISTS 
     19                        echo "0x"$VENDORID "0x"$PRODUCTID > /etc/cellmodem-id 
     20                        modprobe usbserial vendor=0x$VENDORID product=0x$PRODUCTID 
     21                        exit 
     22                        fi 
     23                fi 
     24        done 
     25 
     26
     27                         
     28#sierra wireless aircard 580 
     29DetectCellModem 1199 0112 
     30 
     31#Kyrocera KPC650 
     32DetectCellModem 0c88 17da 
     33 
     34#Audiovox PC5740 
     35DetectCellModem 106c 3701 
     36 
     37# Novatel Merlin V620 v1 
     38DetectCellModem 1410 1110 
     39 
     40# Novatel Merlin V620 v2  
     41DetectCellModem 1416 1110 
     42 
     43# Novatel Merlin S720  
     44DetectCellModem 1410 1130 
     45 
     46#modprobe usbserial   
     47#modprobe airprime