On Sat, Mar 18, 2006 at 04:48:53PM +1000, Jonathan Hepburn muttered these words:
> On 3/17/06, Eric Evans <[EMAIL PROTECTED]> wrote:
> > The ifplugd daemon doesn't read this file, it is sourced by the init
> > script. I'm betting that if you invoke ifplugd with "-i <interface> -q -f
> > -u0 -d10 -w -I" you'll find that it works. This obviously isn't what you
> > want though, it's supposed to be started/stopped automatically, so ...
> 
> Yes, actually, that does run. It doesn't work entirely properly,
> though. As in, it will bring the interface up automatically, but will
> not close it.
> 
> 
> > First, try starting it up like like so:
> >
> >  /etc/init.d/ifplugd start <interface>
> 
> No: "Usage: /etc/init.d/ifplugd
> {start|stop|restart|force-reload|status|suspend|resume}" No option for
> arguments.
> 
> > You need to specify the additional argument of the interface name for
> > interfaces that fall under HOTPLUG_INTERFACES, (which is all of them in
> > your config).
> >
> > If that fails, then try ...
> >
> >  sh -x /etc/init.d/ifplugd start <interface>
> >
> > ... which will produce lots of output which you should paste in your
> > response to this message.
> 
> Okay then:
> 
> 
> + CFG=/etc/default/ifplugd
> + IFPLUGD=/usr/sbin/ifplugd
> + test -x /usr/sbin/ifplugd
> ++ id -u
> + '[' 0 '!=' 0 ']'
> + '[' -f /etc/default/ifplugd ']'
> + . /etc/default/ifplugd
> ++ INTERFACES=
> ++ HOTPLUG_INTERFACES=all
> ++ ARGS='-q -f -u0 -d10 -w -I'
> ++ SUSPEND_ACTION=stop
> + VERB=usb0
> + shift
> + '[' 0 -ne 0 ']'
> + '[' x = xauto -o x = xall ']'
> + case "$VERB" in
> + echo 'Usage: /etc/init.d/ifplugd
> {start|stop|restart|force-reload|status|suspend|resume}'
> Usage: /etc/init.d/ifplugd
> {start|stop|restart|force-reload|status|suspend|resume}
> + exit 1

This looks suspiciously like the first argument to the init script was
"usb0". If your interface is usb0, make sure you are using:

  sh -x /etc/init.d/ifplugd start usb0

> > Now, if "/etc/init.d/ifplugd start <interface>" *does* work, then run ...
> >
> >  ACTION=add INTERFACE=<interface> sh -x /etc/hotplug.d/net/ifplugd.hotplug
> >
> > ... which again will produce lots of output which you should paste/attach
> > in reply to this mail.
> 
> Skipped this part, for reasons outlined above.

Let's go ahead and try it. If your interface is usb0, make sure ifplugd
is not running and invoke:

  ACTION=add INTERFACE=usb0 sh -x /etc/hotplug.d/net/ifplugd.hotplug

> > Note: make sure that you substitute "<interface>" with the name of your
> > interface in all the commands listed above.
> 
> Ah, yes :)
> 
> Now, here's another thing: For some reason related to kernel upgrades,
> I now have a 'zaurus' kernel module. At the moment, not having worked
> out the automatic loading/unloading (no real time ATM), I load it by
> hand, not wishing to dump it into /etc/modules and forget about it. It
> therefore stays loaded regardless of whether or not it's needed. Does
> ifplugd care about modules coming and going as required?

This doesn't sound like it would be a problem.

-- 
Eric Evans
[EMAIL PROTECTED]

Attachment: signature.asc
Description: Digital signature

Reply via email to