Skip to contentSkip to conversation

udev-135: capi-rules not working

DISCUSSION Matthias Schwarzott 2 participants 2 messages Dec 2, 2008 – Dec 3, 2008

lore
Share & tools
lore
#0 lore raw

Hi list!

It seems that the rules related to capi devices are not correct:

KERNEL="capi", NAME="capi20", SYMLINK+="isdn/capi20"
KERNEL="capi*", NAME="capi/%n"

I have no clue why, but these rules make capi devices not work.

Changing the second rule to match only on KERNEL="capi[0-9]*" is reported to make it work.

So I can only guess that the problem is the second rule overwriting the NAME set by the first one.

Can anyone using capi-hardware verify this.
Then 40-isdn.rules file can be fixed.

Regards
Matthias

#1 lore raw
Quoted 5 lines · Matthias Schwarzott

It seems that the rules related to capi devices are not correct:

KERNEL="capi", NAME="capi20", SYMLINK+="isdn/capi20"
KERNEL="capi*", NAME="capi/%n"

Quoted 7 lines

I have no clue why, but these rules make capi devices not work.

Changing the second rule to match only on KERNEL="capi[0-9]*" is reported to make it work.

So I can only guess that the problem is the second rule overwriting the NAME set by the first one.

I've changed the rules in the git tree now to include a subsystem match, and also the check for the instance number.

We should really fix such broken rules, which match with a single key for only a few characters followed by a wildcard.

Thanks,
Kay