2010-10-17 23:50:55 +04:00
|
|
|
|
|
|
|
|
|
int cmd_ver(char param[])
|
|
|
|
|
{
|
2010-10-21 08:37:59 +04:00
|
|
|
|
if (!strcmp(param, "kernel"))
|
|
|
|
|
{
|
|
|
|
|
char *kvbuf;
|
|
|
|
|
char *vA, *vB, *vC, *vD;
|
|
|
|
|
unsigned *Rev;
|
|
|
|
|
|
|
|
|
|
kvbuf = malloc(16);
|
|
|
|
|
kol_get_kernel_ver(kvbuf);
|
|
|
|
|
vA = kvbuf+0;
|
|
|
|
|
vA = *vA;
|
|
|
|
|
vB = kvbuf+1;
|
|
|
|
|
vB = *vB;
|
|
|
|
|
vC = kvbuf+2;
|
|
|
|
|
vC = *vC;
|
|
|
|
|
vD = kvbuf+3;
|
|
|
|
|
vD = *vD;
|
|
|
|
|
Rev = kvbuf+5;
|
|
|
|
|
Rev = *Rev;
|
|
|
|
|
|
|
|
|
|
#if LANG_ENG
|
|
|
|
|
printf (" KolibriOS v%d.%d.%d.%d. Kernel SVN-rev.: %d\n\r", vA, vB, vC, vD, Rev);
|
|
|
|
|
#elif LANG_RUS
|
2011-01-30 14:52:46 +03:00
|
|
|
|
printf (" KolibriOS v%d.%d.%d.%d. SVN-ॢ. <20><><EFBFBD><EFBFBD>: %d\n\r", vA, vB, vC, vD, Rev);
|
2010-10-21 08:37:59 +04:00
|
|
|
|
#endif
|
|
|
|
|
free(kvbuf);
|
|
|
|
|
return TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
printf (" Shell v%s\n\r", SHELL_VERSION);
|
|
|
|
|
return TRUE;
|
|
|
|
|
}
|
2010-10-17 23:50:55 +04:00
|
|
|
|
}
|