Re: devd problem with 9-stable

2012-06-15 Thread Kevin Oberman
On Fri, Jun 15, 2012 at 12:13 PM, Ronald Klop wrote: > On Fri, 15 Jun 2012 18:40:45 +0200, Kevin Oberman wrote: > >> On Fri, Jun 15, 2012 at 7:53 AM, Ronald Klop >> wrote: >>> >>> On Fri, 15 Jun 2012 15:50:49 +0200, Warren Block >>> wrote: >>> On Fri, 15 Jun 2012, Ronald Klop wrote: >

Re: devd problem with 9-stable

2012-06-15 Thread Warren Block
On Fri, 15 Jun 2012, Freddie Cash wrote: On Fri, Jun 15, 2012 at 11:45 AM, Oliver Fromme wrote: Chuck Swiger wrote:  > On Jun 15, 2012, at 11:23 AM, Oliver Fromme wrote:  > > You can try to prepend a backslash, i.e. echo \$devnum.  This  > > isn't documented, but then again, using backslashes

Re: devd problem with 9-stable

2012-06-15 Thread Oliver Fromme
Warren Block wrote: > On Fri, 15 Jun 2012, Oliver Fromme wrote: > > You can try to prepend a backslash, i.e. echo \$devnum. This > > isn't documented, but then again, using backslashes to continue > > strings that span multiple lines isn't documented either. > > devd has already expanded v

Re: devd problem with 9-stable

2012-06-15 Thread Warren Block
On Fri, 15 Jun 2012, Oliver Fromme wrote: > When the event is seen: > Executing 'devnum=`echo ugen0.6 | sed -e 's/^ugen//'` && echo devnum: > /tmp/example && echo cdev: ugen0.6 >> /tmp/example' > > $devnum never gets a value, the contents of /tmp/example are: >devnum: >cdev: ugen0.6 >

Re: devd problem with 9-stable

2012-06-15 Thread Ronald Klop
On Fri, 15 Jun 2012 18:40:45 +0200, Kevin Oberman wrote: On Fri, Jun 15, 2012 at 7:53 AM, Ronald Klop wrote: On Fri, 15 Jun 2012 15:50:49 +0200, Warren Block wrote: On Fri, 15 Jun 2012, Ronald Klop wrote: On Fri, 15 Jun 2012 08:01:21 +0200, Kevin Oberman wrote: On Thu, Jun 14, 201

Re: devd problem with 9-stable

2012-06-15 Thread Oliver Fromme
Freddie Cash wrote: > On Fri, Jun 15, 2012 at 11:45 AM, Oliver Fromme > wrote: > > Chuck Swiger wrote: > >  > On Jun 15, 2012, at 11:23 AM, Oliver Fromme wrote: > >  > > You can try to prepend a backslash, i.e. echo \$devnum.  This > >  > > isn't documented, but then again, using backslash

Re: devd problem with 9-stable

2012-06-15 Thread Freddie Cash
On Fri, Jun 15, 2012 at 11:45 AM, Oliver Fromme wrote: > Chuck Swiger wrote: >  > On Jun 15, 2012, at 11:23 AM, Oliver Fromme wrote: >  > > You can try to prepend a backslash, i.e. echo \$devnum.  This >  > > isn't documented, but then again, using backslashes to continue >  > > strings that span

Re: devd problem with 9-stable

2012-06-15 Thread Oliver Fromme
Chuck Swiger wrote: > On Jun 15, 2012, at 11:23 AM, Oliver Fromme wrote: > > You can try to prepend a backslash, i.e. echo \$devnum. This > > isn't documented, but then again, using backslashes to continue > > strings that span multiple lines isn't documented either. > > Line continuations

Re: devd problem with 9-stable

2012-06-15 Thread Chuck Swiger
On Jun 15, 2012, at 11:23 AM, Oliver Fromme wrote: > You can try to prepend a backslash, i.e. echo \$devnum. This > isn't documented, but then again, using backslashes to continue > strings that span multiple lines isn't documented either. Line continuations and escaping special chars like $ are

Re: devd problem with 9-stable

2012-06-15 Thread Oliver Fromme
Warren Block wrote: > Well, it did work with an attach event. Progress: the event is seen > with a notify event. However, something is not right with the execution > of backticks in the action string: > > notify 20 { > match "subsystem" "DEVICE"; > match "type" "ATTACH

Re: devd problem with 9-stable

2012-06-15 Thread Warren Block
On Fri, 15 Jun 2012, Oliver Fromme wrote: Warren Block wrote: > [...] > > > > > attach 50 { > [...] > > Even with those changes, devd is not triggering on my scanner attach: > > match "subsystem" "DEVICE"; > match "type" "ATTACH"; > match "cdev" "ugen[0-9]+.[0-9]+"; >

Re: devd problem with 9-stable

2012-06-15 Thread Kevin Oberman
On Fri, Jun 15, 2012 at 7:53 AM, Ronald Klop wrote: > On Fri, 15 Jun 2012 15:50:49 +0200, Warren Block wrote: > >> On Fri, 15 Jun 2012, Ronald Klop wrote: >> >>> On Fri, 15 Jun 2012 08:01:21 +0200, Kevin Oberman >>> wrote: >>> On Thu, Jun 14, 2012 at 3:11 AM, Ronald Klop wrote: >

Re: devd problem with 9-stable

2012-06-15 Thread Ronald Klop
On Fri, 15 Jun 2012 15:50:49 +0200, Warren Block wrote: On Fri, 15 Jun 2012, Ronald Klop wrote: On Fri, 15 Jun 2012 08:01:21 +0200, Kevin Oberman wrote: On Thu, Jun 14, 2012 at 3:11 AM, Ronald Klop wrote: On Thu, 14 Jun 2012 02:41:58 +0200, Kevin Oberman wrote: Since updating my

Re: devd problem with 9-stable

2012-06-15 Thread Oliver Fromme
Warren Block wrote: > [...] > > > > > attach 50 { > [...] > > Even with those changes, devd is not triggering on my scanner attach: > > match "subsystem" "DEVICE"; > match "type" "ATTACH"; > match "cdev" "ugen[0-9]+.[0-9]+"; > match "vendor" "0x04b8";

Re: devd problem with 9-stable

2012-06-15 Thread Warren Block
On Fri, 15 Jun 2012, Ronald Klop wrote: On Fri, 15 Jun 2012 08:01:21 +0200, Kevin Oberman wrote: On Thu, Jun 14, 2012 at 3:11 AM, Ronald Klop wrote: On Thu, 14 Jun 2012 02:41:58 +0200, Kevin Oberman wrote: Since updating my systems to 9-Stable, I am not getting my smartcard reader attac

Re: devd problem with 9-stable

2012-06-15 Thread Ronald Klop
On Fri, 15 Jun 2012 08:01:21 +0200, Kevin Oberman wrote: On Thu, Jun 14, 2012 at 3:11 AM, Ronald Klop wrote: On Thu, 14 Jun 2012 02:41:58 +0200, Kevin Oberman wrote: Since updating my systems to 9-Stable, I am not getting my smartcard reader attached when hot-plugged. From devd.conf

Re: devd problem with 9-stable

2012-06-15 Thread Ronald Klop
On Fri, 15 Jun 2012 08:01:21 +0200, Kevin Oberman wrote: On Thu, Jun 14, 2012 at 3:11 AM, Ronald Klop wrote: On Thu, 14 Jun 2012 02:41:58 +0200, Kevin Oberman wrote: Since updating my systems to 9-Stable, I am not getting my smartcard reader attached when hot-plugged. From devd.conf

Re: devd problem with 9-stable

2012-06-15 Thread Oliver Fromme
Kevin Oberman wrote: > Since updating my systems to 9-Stable, I am not getting my smartcard > reader attached when hot-plugged. > > > From devd.conf > attach 50 { > device-name "ugen[0-9]+"; > match "vendor" "0x0529"; > match "product" "0x0600"; > action "/

Re: devd problem with 9-stable

2012-06-14 Thread Kevin Oberman
On Thu, Jun 14, 2012 at 3:11 AM, Ronald Klop wrote: > On Thu, 14 Jun 2012 02:41:58 +0200, Kevin Oberman wrote: > >> Since updating my systems to 9-Stable, I am not getting my smartcard >> reader attached when hot-plugged. >> >>> From devd.conf >> >> attach 50 { >>        device-name "ugen[0-9]+";

Re: devd problem with 9-stable

2012-06-14 Thread Ronald Klop
On Thu, 14 Jun 2012 02:41:58 +0200, Kevin Oberman wrote: Since updating my systems to 9-Stable, I am not getting my smartcard reader attached when hot-plugged. From devd.conf attach 50 { device-name "ugen[0-9]+"; match "vendor" "0x0529"; match "product" "0x0600";