笔者采用的是华为EC122无线上网卡
一:编辑/etc/modules.d/60-usb-serial
usbserial vendor=0x12d1 product=0x1505
二:编辑/etc/config/network, 添加新的3g网卡设备
config 'interface' '3g'
option 'proto' '3g'
option 'username' 'ctnet@mycdma.cn'
option 'password' 'vnet.mobi'
option 'maxwait' '0'
option 'device' '/dev/ttyUSB0'
三:编辑/etc/chatscripts/3g.chat
TIMEOUT 5
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
'' AT
'OK-+++c-OK' ATH0
TIMEOUT 40
'' AT
OK ATDT#777
CONNECT ''