==> /etc/conf.d/bluetooth <==
# Bluetooth configuraton file
# Start of hcid (allowed values are "true" and "false")
HCID_ENABLE=true
# Config file for hcid
HCID_CONFIG="/etc/bluetooth/hcid.conf"
# Start sdpd (allowed values are "true" and "false")
SDPD_ENABLE=true
# Start hidd (allowed values are "true" and "false")
HIDD_ENABLE=false
# Arguments to hidd
HIDD_OPTIONS=""
# Run hid2hci (allowed values are "true" and "false")
HID2HCI_ENABLE=false
# Bind rfcomm devices (allowed values are "true" and "false")
RFCOMM_ENABLE=true
# Config file for rfcomm
RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
# Start dund (allowed values are "true" and "false")
# If you want to use dund, you must install: net-dialup/ppp .
DUND_ENABLE=false
# Arguments to dund
DUND_OPTIONS="--listen --persist"
# Start pand (allowed values are "true" and "false")
PAND_ENABLE=false
# Arguments to pand
PAND_OPTIONS="--listen --role NAP"
==> /etc/bluetooth/rfcomm.conf <==
#
# RFCOMM configuration file.
#
# See also /etc/udev/rules.d/71-bluetooth-rfcomm.rules
rfcomm0 {
# Automatically bind the device at startup
bind yes;
device 00:12:D2:30:EC:C2;
channel 2;
comment "Nokia E61 serial";
}
rfcomm1 {
bind yes;
device 00:17:4B:D6:53:D6;
channel 1;
comment "Nokia 6630";
}
==> /etc/udev/rules.d/71-bluetooth-rfcomm.rules <==
# darkk...
ACTION=="add", SUBSYSTEM=="tty", KERNEL=="rfcomm*", \
WAIT_FOR_SYSFS="address", \
ATTR{address}=="00:12:D2:30:EC:C2", \
GROUP="uucp", SYMLINK+="nokia-e61 gprs"
ACTION=="add", SUBSYSTEM=="tty", KERNEL=="rfcomm*", \
WAIT_FOR_SYSFS="address", \
ATTR{address}=="00:17:4B:D6:53:D6", \
GROUP="uucp", SYMLINK+="nokia-6630"
==> /etc/ppp/options.gprs <==
115200
nodetach
updetach
defaultroute
# I have local resolver that is good for me
# usepeerdns
local
noauth
noccp
holdoff 5
disconnect 'chat -V -f /etc/ppp/chat-gprs'
# kernel: [5082538.026000] usb 2-2: USB disconnect, address 33
# pppd[25103]: Modem hangup
# pppd[25103]: Connect time 44.8 minutes.
# pppd[25103]: Sent 299458 bytes, received 322930 bytes.
# kernel: [5082538.027000] pl2303 2-2:1.0: device disconnected
# pppd[25103]: Connection terminated.
# kernel: [5082538.073000] pl2303 ttyUSB1: pl2303 converter now disconnected from ttyUSB1
# kernel: [5082538.129000] usb 2-2: new full speed USB device using uhci_hcd and address 34
# kernel: [5082538.258000] pl2303 2-2:1.0: pl2303 converter detected
# kernel: [5082538.258000] usb 2-2: pl2303 converter now attached to ttyUSB1
#
# So we can't use persist as we have to restart pppd if we use pl2303
persist
==> /etc/ppp/peers/beeline <==
/dev/gprs
remotename beeline
user beeline
connect 'chat -V -T internet.beeline.ru -f /etc/ppp/chat-gprs'
==> /etc/ppp/chat-gprs <==
ABORT BUSY
ABORT ERROR
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
TIMEOUT 120
""
ATZ OK
AT+CGDCONT=1,\"IP\",\"\T\" OK
ATD*99***1# CONNECT
\c