[Bluez-users] Initialization script

From: Rafael Vidal Aroca <hidden>
Date: 2004-09-28 19:58:42

    Hello people,

    i'm very happy using bluez tools as a wireless internet gateway to 
my ipaq via my linux box.

    I'll report the way i did it in case anyone is interested:

    added the lines to /etc/modules.conf:
   
    alias net-pf-31 bluez
    alias bt-proto-0 l2cap
    alias bt-proto-2 sco
    alias bt-proto-3 rfcomm
    alias bt-proto-4 bnep
    alias tty-ldisc-15 hci_uart
    alias char-major-10-250 hci_vhci

    Run the following commands:
    ---------------------------------------
    hciconfig hci0 up
    hcid
    sdpd
    /opt/kde/bin/kbluetoothd
    pand --listen --role NAP
    dund --listen
    dund --listen --msdun call dun
    echo 1 > /proc/sys/net/ipv4/ip_forward                        
    iptables -t nat -A POSTROUTING -j MASQUERADE -o eth0

    And set a peer called dund in /etc/ppp/peers.

    All worker nicely!  


    The only problem i have is that i have to issue these commands every 
time i turn the computer on.

    I tried to edit hotplug's bluefw script so that after inserting my 
usb bluetooth dongle, and loading the firmware, i get all user space 
apps running.

    But it does not work!
    Yes, if i issue a ps, i see that all needed daemons are running, but 
when my ipaq searches for services, if fails....

    any hint to this strange behavior?

thanks
[]s Rafael.




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help