On 3/17/06, Eric Evans <[EMAIL PROTECTED]> wrote:
> When run with no arguments, ifplugd defaults to interface eth0.
Ah, I see. Of course.
> > Here are the non-commented contents of /etc/default/ifplugd:
> >
> > INTERFACES=""
> > HOTPLUG_INTERFACES="all"
> > ARGS="-q -f -u0 -d10 -w -I"
> > SUSPEND_ACTION="stop"
>
> 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
> 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.
> 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?
Cheers,
JH