richardandrade
(usa Debian)
Enviado em 15/01/2009 - 10:37h
primero crie uma regra para o udev
#touch /etc/udev/rules.d/50-md300modem.rules
edite o arquivo
#vim /etc/udev/rules.d/50-md300modem.rules
ACTION!="add", GOTO="3G_End"
BUS=="usb", SYSFS{idProduct}=="d0cf",
SYSFS{idVendor}=="0fce",
NAME="%k", SYMLINK="modem3G-%n", PROGRAM="/bin/sh -c ' echo 3 > /sys%p/device/bConfigurationValue'"
Label="3G_End"
saia salvando o arquivo
edite o wvdial.conf
#vim /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyACM0
ISDN = off
Modem Type = USB Modem
Baud = 460800
Init = ATZ
Init2 = AT+CFUN=1
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1, "IP", "bandalarga.claro.com.br"
Init5 =
Init6 =
Init7 =
Init8 =
Init9 =
Phone = *99***1#
Phone1 =
Phone2 =
Phone3 =
Phone4 =
Dial Prefix =
Dial Attempts = 3
Dial Command = ATM1L3DT
Ask Password = off
Password = claro
Username = claro
Auto Reconnect = on
Abort on Busy = off
Carrier Check = on
Check Def Route = on
Abort on No Dialtone = on
Stupid Mode = on
Idle Seconds = 0
Auto DNS = on
;Minimize = off
;Dock = off
;Do NOT edit this file by hand!
saia salvando
edite o arquivo /etc/rc.local
#vim /etc/rc.local
adicione
wvdial
saia salvando
reinicie o udev
#invoke-rc.d udev restart
ou
#/etc/init.d/udev restart
execute o rc.local
#. /etc/rc.local
valeu e abraço.