2004-05-12 21:27:24

by Rob Taft

[permalink] [raw]
Subject: Re: [Bluez-users] DHCPD and Bluetooth

I think I'm almost there.
I noticed that it is not HW based after I posted. I saw in
/var/log/messages a message that occurred ever connection:

May 12 17:01:20 SMED /etc/hotplug/net.agent: invoke ifup bnep0

So I went into the net.agent file and found this line that matched the
output:

debug_mesg invoke ifup $INTERFACE

I added more lines to that so now it looks like this:

if [ -x /sbin/ifup ]; then
debug_mesg invoke ifup $INTERFACE
debug_mesg LALALALALALALALALALA #ADDED THIS
exec /sbin/ifup $INTERFACE
debug_message Attempting to restart dhcpd. #ADDED THIS
exec /etc/init.d/dhcpd restart #ADDED THIS
else
mesg "how do I bring interfaces up on this distro?"
fi

I then restarted my entire system....and the 2nd 2 lines were never reached.
I added the LALALA line after and that appears in the logs...so I'm guessing
that "exec /sbin/ifup $INTERFACE" is causing the script to exit





----- Original Message -----
From: "Pavel Ruzicka" <[email protected]>
To: <[email protected]>
Cc: "Rob Taft" <[email protected]>
Sent: Wednesday, May 12, 2004 4:57 PM
Subject: Re: [Bluez-users] DHCPD and Bluetooth


> Hello,
>
> > restart it. I don't think hotplug is what I am looking for since it is
> > hardware connection based.
>
> This is not only hardware connection based. When you try setup network
from
> remote device, that kernel call /sbin/hotplug with NET action.
> You can edit script "/etc/hotplug.d/default/default.hotplug" or other in
your
> distribution and uncomment line "DEBUG=yes export DEBUG".
> Later you can look in to log file for interesting messages ;-)
> In this case will be probably interesting script /etc/hotplug/net.agent.
>
> Best regards,
>
> Pavel Ruzicka
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Sleepycat Software
> Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver
> higher performing products faster, at low TCO.
> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2004-05-12 21:47:25

by Achim Bohnet

[permalink] [raw]
Subject: Re: [Bluez-users] DHCPD and Bluetooth

On Wednesday 12 May 2004 23:27, Rob Taft wrote:
> I think I'm almost there.
> I noticed that it is not HW based after I posted. I saw in
> /var/log/messages a message that occurred ever connection:
>
> May 12 17:01:20 SMED /etc/hotplug/net.agent: invoke ifup bnep0
>
> So I went into the net.agent file and found this line that matched the
> output:
>
> debug_mesg invoke ifup $INTERFACE
>
> I added more lines to that so now it looks like this:
>
> if [ -x /sbin/ifup ]; then
> debug_mesg invoke ifup $INTERFACE
> debug_mesg LALALALALALALALALALA #ADDED THIS
> exec /sbin/ifup $INTERFACE
^^^^ remove this exec!

> debug_message Attempting to restart dhcpd. #ADDED THIS
> exec /etc/init.d/dhcpd restart #ADDED THIS
> else
> mesg "how do I bring interfaces up on this distro?"
> fi
>
> I then restarted my entire system....and the 2nd 2 lines were never reached.
> I added the LALALA line after and that appears in the logs...so I'm guessing
> that "exec /sbin/ifup $INTERFACE" is causing the script to exit

see man bash-builtins

Achim
>
>
>
>
>
> ----- Original Message -----
> From: "Pavel Ruzicka" <[email protected]>
> To: <[email protected]>
> Cc: "Rob Taft" <[email protected]>
> Sent: Wednesday, May 12, 2004 4:57 PM
> Subject: Re: [Bluez-users] DHCPD and Bluetooth
>
>
> > Hello,
> >
> > > restart it. I don't think hotplug is what I am looking for since it is
> > > hardware connection based.
> >
> > This is not only hardware connection based. When you try setup network
> from
> > remote device, that kernel call /sbin/hotplug with NET action.
> > You can edit script "/etc/hotplug.d/default/default.hotplug" or other in
> your
> > distribution and uncomment line "DEBUG=yes export DEBUG".
> > Later you can look in to log file for interesting messages ;-)
> > In this case will be probably interesting script /etc/hotplug/net.agent.
> >
> > Best regards,
> >
> > Pavel Ruzicka
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by Sleepycat Software
> > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
> deliver
> > higher performing products faster, at low TCO.
> > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> > _______________________________________________
> > Bluez-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/bluez-users
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Sleepycat Software
> Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
> higher performing products faster, at low TCO.
> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
>

--
To me vi is Zen. To use vi is to practice zen. Every command is
a koan. Profound to the user, unintelligible to the uninitiated.
You discover truth everytime you use it.
-- [email protected]


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users