Package: udev
Version: 0.088-2
Severity: normal

What happens if several rules match an event?  The man page seems to
say they will all apply.  For example, the last paragraph of the
DESCRIPTION section refers to "Rules [plural] that match".  Some of
the options refer to cutting off rules application, implying that
ordinarily they proceed.

This does not seem to be the behavior I'm getting.  I put this rule
ACTION="add", SUBSYSTEM="net", RUN+="/sbin/nameif"
before the usual hotplug.rules.  The ethernet device was not up at the
end of this, suggesting that the following rule (invoking net.agent)
never ran.

I changed the rule to
ACTION="add", SUBSYSTEM="net", RUN+="/sbin/nameif", RUN+="/bin/sh -c
'/lib/udev/net.agent &'"
and ran udevtrigger.  This time it worked.

So either only the first rule is processed, or this is one of those
other networking bugs that have been reported where things fail on
startup but work later.

Other documentation on the internet indicates that udev stops as soon
as the first match is found, so maybe this is the actual and intended
behavior.  If so, it would be good for the man page to make that
clear.

I also found the documentation on OPTIONS a little hard to follow.  I
guess the intent is, e.g., OPTIONS=last_rule to apply one of these
options.  I wasn't clear that OPTIONS was a key.  Perhaps an example
would help, if you think others might be as dense :)

This was using a 2.6.15 kernel (I'm sending this from a different
system than the one I ran udev on).

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (990, 'stable'), (50, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27advncdfs
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to