Return-Path: Subject: Re: [Bluez-users] Setting up an hotplug connection with USB dongles From: Marcel Holtmann To: BlueZ Mailing List In-Reply-To: <200411282132.37941.rdorsch@web.de> References: <200411282132.37941.rdorsch@web.de> Content-Type: text/plain Message-Id: <1101692311.9527.10.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 29 Nov 2004 02:38:31 +0100 Hi Rainer, > I am wondering, if there is a way to setup a hotplug connection between two > Linux machines using two bluetooth dongles. One of them is a NAP (with > Internet access) and booted first, the other box a PANU. > > My problem is that I need the pand running on both sides first before I can do > an ifconfig for the bnep0 interface on the NAP. > > > > What I did on both Debian Linux systems is: > > Add a file > > /etc/hotplug/usb/libbt.usermap > > The file contains a line for an epox DG02A dongle > > epoxbt 0x0003 0x0a12 0x0001 0x0000 0x0000 0x00 > 0x00 0x00 0x00 0x00 0x00 > 0x00000000 > > with the vendor ID (here 0x0a12) and the product ID (here 0x0001). > > Then add the script epoxbt to the same directory: > > # cat epoxbt > echo "Load epox bluetooth dongle..." > > modprobe bnep > pand --master --listen --role NAP > # > > and > > topsi:~# cat /etc/hotplug/usb/epoxbt > #!/bin/bash > > echo "Load epox bluetooth dongle..." > modprobe bnep > pand --role PANU --connect > topsi:~# > > > Then I do on the NAP an > > # ifconfig 192.128.2.1 > > and on the PANU > > # dhclient > > This works fine, I can access the Internet from the PANU. > > > The problem is that the ifconfig on the NAP fails when I do not have the PANU > connected before....thus I can't add the network configuration part into the > expobt scripts. > > Does anyone have an idea or pointer for that problem. since this is Debian, don't do it like this. Use /etc/network/interfaces and add up and down rules. Regards Marcel ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users