Use freebsd-version -k
! Do seu manual :
-k Print the version and patch level of the installed kernel. Unlike uname(1), if a new kernel has been installed but the system has not yet rebooted, freebsd-version will print the version and patch level of the new kernel.
Você deve comparar a saída de freebsd-version -k
e uname -r
e, se diferir, deverá reboot
.
Outra opção é usar strings
(idéia tirada de /bin/freebsd-version
):
strings /boot/kernel/kernel | sed -n "s,^@(#)FreeBSD \([^ ]*\).*,,p"