Hi all,
I'm looking for a way to determine which version of FreeBSD is installed on a mounted partition by reading the filesystem (under Linux). I haven't found a file which does provide this info - such as for example /etc/release (in NetBSD). I don't mind parsing a binary file, like a kernel module - if there is no better choice, but I don't know where to look. Would be great if it where on slice a somewhere.
The "$FreeBSD: ..." line of comment that is present in many files is not reliable, as it doesn't necessarily contain the version number but just a path.
I'm looking for a way to determine which version of FreeBSD is installed on a mounted partition by reading the filesystem (under Linux). I haven't found a file which does provide this info - such as for example /etc/release (in NetBSD). I don't mind parsing a binary file, like a kernel module - if there is no better choice, but I don't know where to look. Would be great if it where on slice a somewhere.
The "$FreeBSD: ..." line of comment that is present in many files is not reliable, as it doesn't necessarily contain the version number but just a path.