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

Task hooks #13

Merged
merged 2 commits into from
Jun 5, 2017
Merged

Task hooks #13

merged 2 commits into from
Jun 5, 2017

Conversation

bukepo
Copy link
Member

@bukepo bukepo commented Jun 2, 2017

This PR involves an mechanism to allow adding hooks on certain platform before or after certain script runs its tasks.

Platform is identified based on output of lsb_release -i. On raspberry PI 3B, it gives raspbian. On ubuntu, it gives ubuntu.

To add a hook, create a script file in examples/platforms/XXX where XXX is the platform name describe above, and name the script as before_XXX or after_XXX, XXX is the script filename in script, an example hook is provided under examples/platforms/raspbian/after_bootstrap to remove avahi-daemon which is currently conflict with border router service.

@bukepo bukepo requested review from lanyuwen and jwhui June 2, 2017 12:37
Copy link
Member

@lanyuwen lanyuwen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is a nice step forward to support more platforms.

@bukepo bukepo added the P2 label Jun 5, 2017
@bukepo bukepo requested review from jwhui and removed request for jwhui June 5, 2017 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants