Re: [systemd-devel] Counting mechanism in udev rules

2012-12-14 Thread Kay Sievers
On Fri, Dec 14, 2012 at 3:47 PM, Robert Milasan wrote: > On Fri, 14 Dec 2012 11:30:05 +0100 > "Kay Sievers" wrote: > >> On Fri, Dec 14, 2012 at 9:11 AM, Robert Milasan >> wrote: >> > Is there some kind of a counting mechanism which can be used in a >> > udev rule? >> > >> > I got this rule: >> >

Re: [systemd-devel] Counting mechanism in udev rules

2012-12-14 Thread Robert Milasan
On Fri, 14 Dec 2012 11:30:05 +0100 "Kay Sievers" wrote: > On Fri, Dec 14, 2012 at 9:11 AM, Robert Milasan > wrote: > > Is there some kind of a counting mechanism which can be used in a > > udev rule? > > > > I got this rule: > > > > ACTION=="add", SUBSYSTEM=="3270", KERNEL=="tty0.0.[0-9]*", > >

Re: [systemd-devel] Counting mechanism in udev rules

2012-12-14 Thread Kay Sievers
On Fri, Dec 14, 2012 at 9:11 AM, Robert Milasan wrote: > Is there some kind of a counting mechanism which can be used in a udev > rule? > > I got this rule: > > ACTION=="add", SUBSYSTEM=="3270", KERNEL=="tty0.0.[0-9]*", > SYMLINK+="3270/ttycons-%n" > > and the result of this rule looks like this:

[systemd-devel] Counting mechanism in udev rules

2012-12-14 Thread Robert Milasan
Is there some kind of a counting mechanism which can be used in a udev rule? I got this rule: ACTION=="add", SUBSYSTEM=="3270", KERNEL=="tty0.0.[0-9]*", SYMLINK+="3270/ttycons-%n" and the result of this rule looks like this: lrwxrwxrwx 1 root root 14 Dec 13 15:28 ttycons-0500 -> ../tty0.0.0500