Download the Right FreeBSD Kernel Source Code

Today I wanted to download the right kernel source code and found this helping blog post. However, I got the feeling that the url can be built automatically to avoid fetching the wrong URL. Use the following command instead and it should always fetch the appropriate sources according to your currently running machine:

fetch ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r`/src.txz

I hope this was at least a little helpful ;)
Cheers,
iss