-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update for OpenWrt #49
Conversation
It turns out that the openwrt systems that I have been using to test my OpenWRT package builds (All Turris Omnia systems) appears to have had a vendor patch applied to create a symlink from "/run" to "/var/run". On a vanilla OpenWRT system, there is no "/run". Use the new configure option to set the correct run dir location. (Also deal with the OpenWRT auto conf tools being too old to include the runstatedir option) (See PR n42n#48, n42n#49)
It turns out that the openwrt systems that I have been using to test my OpenWRT package builds (All Turris Omnia systems) appears to have had a vendor patch applied to create a symlink from "/run" to "/var/run". On a vanilla OpenWRT system, there is no "/run". Use the new configure option to set the correct run dir location. (Also deal with the OpenWRT auto conf tools being too old to include the runstatedir option) (See PR n42n#48, n42n#49)
(Note that this is the same function as proposed in PR #48, with a different patch - see that PR for the earlier discussion) |
char *basedir = "/run/n3n"; | ||
#else | ||
char *basedir = "/tmp/run/n3n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "/tmp/run" is an implementation detail - the well defined dir to use is "/var/run"
When I talked about adding a "config" option, I meant adding it to the I've implemented it like that in hamishcoleman@0847c26 and hamishcoleman@dae535a |
That has been merged in PR #50 - can you test that and confirm that it is working as expected? |
Use the /tmp/run/n3n directory for OpenWrt, the libcap is not required.