ghostbsd / networkmgr

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

src: auto-switch: use `kenv -q` instead of `kenv` #89

Closed kevans91 closed 1 year ago

kevans91 commented 1 year ago

This suppresses the "unable to get rc_system" message that one would see if rc_system wasn't set in the kenv. There's no reason we should be visibly complaining to the user about this, as the var missing isn't necessarily unexpected (e.g., on stock FreeBSD).

Other kenv use LGTM; just this one that needs touched up.

This should fix https://www.reddit.com/r/freebsd/comments/14mmfyl/freebsd_14_kenv_error/

ericbsd commented 1 year ago

Thanks