Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ipc-notify program for custom scripting #451

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

krakowski
Copy link
Contributor

This PR adds a slightly modified version of ipc_read enabling functionality similar to hooks. The program accepts an additional --command parameter which is expected to be a path to a script/program. Once a message arrives the specified program is called with the message as the first parameter.

Autostarting this program on boot enables the user to execute custom scripts/programs on any event.

Example

ipc_notify -n 2 -c "/bin/ash /tmp/sd/yi-hack/script/echo_event.sh"

echo_event.sh

#!/bin/ash

echo "${1}"

@roleoroleo roleoroleo merged commit 5d89833 into roleoroleo:master Jun 15, 2022
@roleoroleo
Copy link
Owner

Thank you for your PR.
Can I add this feature to the other repos?
MStar and Allwinner?

@krakowski
Copy link
Contributor Author

Sorry, I was on vacation. Sure, feel free to use it in the other repos as well 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants