Re: [libgpiod]

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

 



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




[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