Add openwrt_generic hardwarekind and cloud config implementations #36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses #29 and #30, bringing a simple implementation for sending, receiving, and applying configuration changes to and from the Minim cloud. In addition, this adds the
openwrt_generic
"HardwareKind" with config handling based on UCI.There are two pretty rough edges:
linux_generic
now depends on libcrypto, ie. openssl. This is pretty heavy for simply the MD5 function, however the curl dependency implies some sort of compatible crypto lib should be available. Right? RIght.linux_generic
now depends on "extras" being installed too, as there is a hard reference to the "extras" generatedextras.conf.sh
in the linux_generic config submodule. I suppose this should be fine, albeit some more noise in the log file when the config file cant be opened--will do more testing to make sure this is not an issue.Added a default no-op implementation as well as gracefully failing to get the configThere is also a component to this in minim-openwrt-feed, will edit with details and links.
Still need to:
README-openwrt_generic.md
minim-openwrt-feed
into theunum-sdk
repositoryminim-config
Internal tasks:
openwrt_generic
hardwarekind to use the existing UCI config parsers