Reyk Floeter <[email protected]> wrote:

> > 1. Shall I *simply* introduce chmod(1)/chown(8) step in the above script?
> > 
> 
> Yes, this is what I recommend.  The good thing is that your script
> already knows the exact uhid device of your footpedal, so doing a
> chmod/chown for this will not automatically open all other HID
> devices.

You cannot recommend that.

chmod a+rw /dev/uhid*
chmod: /dev/uhid0: Operation not permitted
chmod: /dev/uhid1: Operation not permitted
chmod: /dev/uhid2: Operation not permitted
chmod: /dev/uhid3: Operation not permitted
chmod: /dev/uhid4: Operation not permitted
chmod: /dev/uhid5: Operation not permitted
chmod: /dev/uhid6: Operation not permitted
chmod: /dev/uhid7: Operation not permitted

So he'll use doas.  Which just reinvents the disaster.

> > 4. Or perhaps I'm doing it all wrong?
> > 
> 
> No, you're not doing it wrong.  There is no better way to use your pedal.

Sorry, that means it is wrong.

There is code missing.  That code has to be written.

Reply via email to