ghostbsd / networkmgr

NetworkMgr is a Python GTK3 network manager for FreeBSD, GhostBSD, TrueOS and DragonFlyBSD
BSD 3-Clause "New" or "Revised" License
95 stars 30 forks source link

Fix issue handling VLAN configuration from rc.conf #26

Closed maxsteciuk closed 4 years ago

maxsteciuk commented 4 years ago

One symptom of the issue is in case of configured VLANs networkmgr generated the rc.conf entry

ifconfig_igb0.3="DHCP"

Then rc-service got confused parsing /etc/rc.conf content:

ifconfig_igb0.3="DHCP" [~]$ sudo service vboxnet status />>etc/rc.conf: ifconfig_igb0.3=DHCP: not found

  • vboxnet: error loading /etc/rc.conf [~]$ sudo service dbus status /etc/rc.conf: ifconfig_igb0.3=DHCP: not found
  • dbus: error loading /etc/rc.conf"

I tested the patch by restarting networkmgr before and after reboot and checked the symptom didn't occur anymore