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

bbbdigger: use uci-default script in place of separate shell script #199

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SvenRoederer
Copy link
Contributor

Since some time the uci-default scripts are ran after installing a package with opkg. So we can use this method also to trigger the runtime config-setup and can drop doing it with the PostInstall-script.

This will make the code more "clean".

Since some time the uci-default scripts are ran after installing a
package with opkg. So we can use this method also to trigger the runtime
config-setup and cleanup the Makefile even more.
@pmelange
Copy link
Contributor

pmelange commented Apr 7, 2020

According to https://openwrt.org/docs/guide-developer/packages, a post-install script is what should be used. After looking at the various packages in openwrt/packages, post-install scripts are used extensively. I have yet to find a package which makes use of uci-defaults exclusively. What I have seen, are packages which put the contents of the post-install script in a uci-default in case a package is burnt into an image.

This package should not be burnt into the freifunk images. It is an add-on.

I think that we should stay with postinst.

Regardless, this PR needs to be changed to add an exit 0 at the end of the uci-default script.

@SvenRoederer
Copy link
Contributor Author

just updated the OpenWrt-wiki regarding the uci-defaults. The feature was added in openwrt/openwrt@9b9c78e

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