help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Udev Rule Not Triggered


From: Antwane Mason
Subject: Re: Udev Rule Not Triggered
Date: Sun, 29 Aug 2021 11:22:40 -0400

Thanks for the clarification. I changed the code to use string-join.
However, the rule is still not running after doing a system reconfigure and
restarting computer. Does anyone know the environment variables that
control finding udev rules? I'm wondering if there is a problem there.

Regards,
Antwane


On Sun, Aug 29, 2021 at 10:42 AM pelzflorian (Florian Pelz) <
pelzflorian@pelzflorian.de> wrote:

> On Sun, Aug 29, 2021 at 04:28:08PM +0200, pelzflorian (Florian Pelz) wrote:
> > >     (string-append
> > > "ACTION==\"add\", SUBSYSTEM==\"usb\", "
> > >                    "ATTR{product}==\"Example\", "
> > >                    "RUN+=\"/path/to/script\"")))
> >
> > The difference is that the manual uses spaces at the end of each
> > string except the last.
> >
> > You can use string-append instead of string-join, but then you need a
> > space at the end of the strings.
>
> P.S. Or for testing just use one big one-line string instead:
>
> (define %onlykey-udev-rule
>   (udev-rule
>    "49-onlykey.rules"
>    "ATTRS{idVendor}==\"1d50\", ATTRS{idProduct}==\"60fc\",
> ENV{ID_MM_DEVICE_IGNORE}=\"1\" ATTRS{idVendor}==\"1d50\",
> ATTRS{idProduct}==\"60fc\", […]"
>    ))
>
> You can also use newlines in the string if syntax requires it.
>
> Regards,
> Florian
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]