RE: [libgpiod]

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

 



Hello Bartosz,

Thanks for the reply.

I did work out a simple patch to get what I needed. It's attached in case it's of any use.


Kevin

-----Original Message-----
From: Bartosz Golaszewski <brgl@xxxxxxxx> 
Sent: Thursday, July 11, 2019 5:02 AM
To: Kevin Welsh <kwelsh@xxxxxxxxxxxxxxxxxxxxx>
Cc: linux-gpio@xxxxxxxxxxxxxxx
Subject: Re: [libgpiod]

pon., 3 cze 2019 o 14:24 Kevin Welsh <kwelsh@xxxxxxxxxxxxxxxxxxxxx> napisał(a):
>
> I am trying to make gpiomon into a daemon using busybox. (start-stop-daemon -b) Instead of writing a message to stdout, I need it to execute a script. My use case is that I need a button press (gpio) to undo setting a static IP.
>
> If I set - -format="touch buttton-was-pressed|sh"
>
> Is this a valid command to make into a daemon? If not, can I submit a patch to include a parameter for executing a script?

Hi Kevin,

I didn't see this message because you didn't Cc me personally.

Yes your example would work i.e. gpiomon would print this string on a GPIO event. Executing scripts is on my TODO list, but your contribution will be more than welcome. :)

Best regards,
Bartosz Golaszewski

Attachment: 0001-add-script.patch
Description: 0001-add-script.patch


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux