-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add BSD support #191
Comments
I would love to see this. Do you have access to a VirtualBox or other virtualization software @woodsb02 ? |
Do you mean vbox on BSD as host? |
I can spin up a FreeBSD guest within my Vultr account, and give you access, if that would help with testing? |
Well I could do the virtualization myself. :) I was just wondering if you were up to making the contribution yourself. |
It would be awesome to support these. I would need a contribute for that though as I don't currently have the time to invest. Anyone? :) |
I'll try to make a dent in this! |
So I've installed and configured an OpenBSD installation and I've found that there is no |
lsb stands for LINUX standard base. On BSD use uname. If you really need to parse userland version, there is an option to grep for version in headers.
|
Thanks for the tip, I was doubtful LSB would be available but was surprised that there wasn't any release info in |
Note that on FreeBSD you can use the command "freebsd-version -k" to give you the same details of the kernel version. The helpful part is that if you want the userland details, you use "freebsd-version -u" (it can be different to the kernel if patches have come out for a release that only affect either kernel or userland). |
Note that distro 1.2.0 has now been added to the FreeBSD ports collection, with Seth's patch in #207. If the BSD implementation changes, we can easily update the patch in the ports tree, but at least this has it working on FreeBSD :) |
Why would be there /etc/*release, it's a Linux specific file. BSD are one - from the kernel to userland, and in typical scenarios uname(1) retrieves the version for everything at once. |
I was reporting information back. I've never investigated or booted into *BSD before, so I'm not sure how I would know that before investigating and learning myself. I reported back so others don't need to verify why I made the decisions I did when reviewing my PR and to make sure that I didn't miss any better way of doing things from actual BSD experts. |
Would it be appropriate to add support for detecting the different families of BSD?
The text was updated successfully, but these errors were encountered: