puppetlabs/facter — pull request #629 by langseth (2014-02-08 06:17:10+00:00)
Title: Make kernelmajversion useful in FreeBSD

FreeBSD has used a 2-element release number since before 3.0. The current kernalmajversion returns the first two elements of kernelversion, which is exactly the same as kernelversion on FreeBSD. This fact now returns just the first element when on FreeBSD.