uname: normalize release and version

Most systems provide the full version number in the
'release' field and the kernel version in 'version'.
Minix used to split the full version number between
release and version which caused problems for pkgsrc
and other applications. This patch brings Minix's
uname in line with other systems such as NetBSD.
It also brings the getty banner in line with NetBSD.

Old Minix uname:
	sysname->Minix
	nodename->10.0.2.15
	release->3
	version->2.1
	machine->i686

New Minix uname:
	sysname->Minix
	nodename->10.0.2.15
	release->3.2.1
	version->Minix 3.2.1 (GENERIC)
	machine->i686

Change-Id: I966633dfdcf2f9485966bb0d0d042afc45bbeb7d
This commit is contained in:
Thomas Cort
2013-09-06 21:40:31 -04:00
committed by Lionel Sambuc
parent 36ac0dbcf8
commit f5dbfe789e
6 changed files with 26 additions and 20 deletions

View File

@@ -325,12 +325,12 @@ void kmain(kinfo_t *local_cbi)
static void announce(void)
{
/* Display the MINIX startup banner. */
printf("\nMINIX %s.%s. "
printf("\nMINIX %s. "
#ifdef _VCS_REVISION
"(" _VCS_REVISION ")\n"
#endif
"Copyright 2012, Vrije Universiteit, Amsterdam, The Netherlands\n",
OS_RELEASE, OS_VERSION);
OS_RELEASE);
printf("MINIX is open source software, see http://www.minix3.org\n");
}