rc.conf.local logic doesn't work as intended yet
Closed this issue · 9 comments
I'll investigate this myself, this is just a tracker so I remind myself.
I think we might need to add some logic to net_api.py for rc.conf.local, eg in functions wired_card_added and wifi_card_added.
The reason that it doesn't work as intended for me yet is because I have defined all interfaces identically as networkmgr would've done in rc.conf.local, but it still writes to rc.conf.
There was a PR to fix that issue and the newest NerwotkMgr does not have that problem.
I see, thanks. Could you push this fix to FreeBSD ports? Or are you waiting on the rework as you mentioned in the individual PR before creating a new tag.
I will I have some minor improvement that I want to get in, but I am not sure how FreeBSD users will like to have networkmgr override default devd entry.
Here is the file I am talking about https://github.com/ghostbsd/networkmgr/blob/master/src/setupnic.conf
I did a quick scan, per FreeBSD hierarchy, this setupnic.conf file should go in /usr/local/etc/devd/.
When I look at some other files present, maybe the correct naming convention should be networkmgr.conf, see image below.
Furthermore it seems that the default devd.conf in /etc/devd.conf already includes the wifi regex for us.
I think the file is fine to ship as is for FreeBSD. It might be nice if you could check to remove the double wifi-regex definitions, maybe move them from this file to /etv/devd.conf in GhostBSD?
I was not aware if wifi-driver-regex of devd.conf would have work that is why I did add in setupnic.conf.
I remove it and test it when I get my improvement in.