From 1428ddf5843cff309527bcf0c7831809a9cfc8fe Mon Sep 17 00:00:00 2001 From: Nasarus Date: Thu, 21 Oct 2010 04:37:59 +0000 Subject: [PATCH] Shell 0.4.51. See History.txt for details. git-svn-id: svn://kolibrios.org@1669 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/shell/all.h | 3 +- programs/system/shell/bin/eng/shell.kex | Bin 5263 -> 5286 bytes programs/system/shell/bin/rus/shell.kex | Bin 5375 -> 5408 bytes programs/system/shell/cmd/cmd_kerver.c | 27 ---------- .../cmd/{cmd_turnoff.c => cmd_shutdown.c} | 2 +- programs/system/shell/cmd/cmd_ver.c | 34 +++++++++++- programs/system/shell/globals.h | 5 +- programs/system/shell/locale/eng/globals.h | 49 +++++++++--------- programs/system/shell/locale/rus/globals.h | 49 +++++++++--------- 9 files changed, 84 insertions(+), 85 deletions(-) delete mode 100644 programs/system/shell/cmd/cmd_kerver.c rename programs/system/shell/cmd/{cmd_turnoff.c => cmd_shutdown.c} (50%) diff --git a/programs/system/shell/all.h b/programs/system/shell/all.h index 9f81ae058..0fc156e0f 100644 --- a/programs/system/shell/all.h +++ b/programs/system/shell/all.h @@ -35,8 +35,7 @@ #include "cmd/cmd_clear.c" #include "cmd/cmd_ccpuid.c" #include "cmd/cmd_sleep.c" -#include "cmd/cmd_turnoff.c" -#include "cmd/cmd_kerver.c" +#include "cmd/cmd_shutdown.c" #include "cmd/cmd_uptime.c" #include "modules/module_command.c" diff --git a/programs/system/shell/bin/eng/shell.kex b/programs/system/shell/bin/eng/shell.kex index 972ca8a24a15135edbb8847793cf8a8586b8abe9..501e93f43b869509dc52329fd52ee3904a01f6b3 100644 GIT binary patch delta 5283 zcmV;U6kO|%DW)lqGk;p%*3t*Cx9&J&k9@D#1(W?rp~gj8u!c=Y>i)^0V_2me)TeC` zlxmuom6WqSnex66Qc-Hnz>giTazYkKr;l~FCP*l>8Ew5I61$oQSmd!ckMiDqgn{8c z7n9lKIJp6Wg)g=czvR}+JDHeJkW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+qq7|jzO=72&_RhulbHHuMGQGS3CG_E^< zpqxod2pd%D9O4h&Dn}lXeV_3vSXKIYtk8F-kMranxtEs-96?iFTpMgZauX-8q21q< z74?!hriQ}UZ>dKgf*0yTar<^2<@6711tIc$DAL^fNK8oI2_wdp%Qy$c!s$qjbB;KN zKCd<~p|o>TLud926j&gI;Eq*dWafRgwzZ+S`}AgZoWrpN2}~xXc9&1CJ8R(=vNe$p zTJi8uUKf0y z$nyEbwBT)WEmr5+E>5*f9h!e}>U!9Wfj?$R5`@Z8H%*_M^SwTFo4thpF$_7}P}&Da z((;vq%T-|f-A;QnOzg>Ic`iLB`v63Pyi2whthoxKLKA_%TdNGZW;Bf$cPDS|rD}2Yrh>2!0*cIFmfN6r>MC(}mIcX{c=5fA z^)M)C2v?D9q?dC2(a1}U&T3&4pkO0lDy70-HLLD@t4Fw9my=dNI`PWc5*L^~N5}Qs z_HQ1i1VD!_KP$L20}w#wI|1TI>TmU#dpGeAwdMmxP0w;N5!Gx)ouqQ0(N-q_`!Bhg za2#NFDgbR{nNCxcT-qenG_#zmielajtV7&tJ(>z?7c&#q?&x|uedx(;?0hME)xS2y zMrexErtT_UdjTgo2=v(u?_ zbk5ddR(L}J%Dy){KTZo*`<%twtTWh1IbvEIYen+^qO~*Xo7e(M*x(0xOr&J;@9m2h ddm?6lPeY3G*%xgWljO+}P=azPTKE6}001BgWR?H` diff --git a/programs/system/shell/cmd/cmd_kerver.c b/programs/system/shell/cmd/cmd_kerver.c deleted file mode 100644 index 455319dc0..000000000 --- a/programs/system/shell/cmd/cmd_kerver.c +++ /dev/null @@ -1,27 +0,0 @@ -int cmd_kerver(char param[]) -{ -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 - printf (" КолибриОС v%d.%d.%d.%d. SVN-рев. ядра: %d\n\r", vA, vB, vC, vD, Rev); -#endif -free(kvbuf); -return TRUE; -} \ No newline at end of file diff --git a/programs/system/shell/cmd/cmd_turnoff.c b/programs/system/shell/cmd/cmd_shutdown.c similarity index 50% rename from programs/system/shell/cmd/cmd_turnoff.c rename to programs/system/shell/cmd/cmd_shutdown.c index cb7d07e10..06ef8d110 100644 --- a/programs/system/shell/cmd/cmd_turnoff.c +++ b/programs/system/shell/cmd/cmd_shutdown.c @@ -1,5 +1,5 @@ -int cmd_turnoff(char param[]) +int cmd_shutdown(char param[]) { kol_system_end(2); return TRUE; diff --git a/programs/system/shell/cmd/cmd_ver.c b/programs/system/shell/cmd/cmd_ver.c index c3056468a..3c5003106 100644 --- a/programs/system/shell/cmd/cmd_ver.c +++ b/programs/system/shell/cmd/cmd_ver.c @@ -1,6 +1,36 @@ int cmd_ver(char param[]) { -printf (" %s\n\r", SHELL_VERSION); -return TRUE; +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 + printf (" КолибриОС v%d.%d.%d.%d. SVN-рев. ядра: %d\n\r", vA, vB, vC, vD, Rev); + #endif + free(kvbuf); + return TRUE; + } +else + { + printf (" Shell v%s\n\r", SHELL_VERSION); + return TRUE; + } } diff --git a/programs/system/shell/globals.h b/programs/system/shell/globals.h index fae15d122..5d89084c8 100644 --- a/programs/system/shell/globals.h +++ b/programs/system/shell/globals.h @@ -1,5 +1,5 @@ -#define SHELL_VERSION "0.4.5" +#define SHELL_VERSION "0.4.51" extern char PATH[256]; extern char PARAM[256]; @@ -63,8 +63,7 @@ int cmd_rmdir(char dir[]); int cmd_touch(char file[]); int cmd_ver(char arg[]); int cmd_sleep(char arg[]); -int cmd_turnoff(char arg[]); -int cmd_kerver(char arg[]); +int cmd_shutdown(char arg[]); int cmd_uptime(char param[]); /// =========================================================== diff --git a/programs/system/shell/locale/eng/globals.h b/programs/system/shell/locale/eng/globals.h index 08524e153..be8bebcb5 100644 --- a/programs/system/shell/locale/eng/globals.h +++ b/programs/system/shell/locale/eng/globals.h @@ -1,28 +1,27 @@ const command_t COMMANDS[]= { - {"about", " Displays information about Shell\n\r", &cmd_about}, - {"alias", " Allows the user view the current aliases\n\r", &cmd_alias}, - {"ccpuid", " Displays CPU information\n\r", &cmd_ccpuid}, - {"cd", " Changes current directory. Usage:\n\r cd \n\r", &cmd_cd}, - {"clear", " Clears the screen\n\r", &cmd_clear}, - {"date", " Returns the current date and time\n\r", &cmd_date}, - {"echo", " Echoes the data to the screen. Usage:\n\r echo \n\r", &cmd_echo}, - {"exit", " Exits from Shell\n\r", &cmd_exit}, - {"memory", " Displays total, free and used memory\n\r", &cmd_memory}, - {"help", " Gives help on commands. Usage:\n\r help ;it lists all builtins\n\r help ;help on command\n\r", &cmd_help}, - {"kerver", " Displays the information about a version of KoOS kernel\n\r", &cmd_kerver}, - {"kill", " Stops a running process. Usage:\n\r kill \n\r", &cmd_kill}, - {"ls", " Lists the files in a directory. Usage:\n\r ls ;lists the files in current directory\n\r ls ;lists the files at specified folder\n\r", &cmd_ls}, - {"mkdir", " Makes directory. Usage:\n\r mkdir ;creates the folder in working directory\n\r mkdir ;create folder by specified path\n\r", &cmd_mkdir}, - {"more", " Displays a file data to the screen. Usage:\n\r more \n\r", &cmd_more}, - {"ps", " Lists the current processes running\n\r", &cmd_ps}, - {"pwd", " Displays the name of the working directory\n\r", &cmd_pwd}, - {"reboot", " Reboots the computer or KoOS kernel. Usage:\n\r reboot ;reboot a PC\n\r reboot kernel ;reboot the KoOS kernel\n\r", &cmd_reboot}, - {"rm", " Removes a file. Usage:\n\r rm file name>\n\r", &cmd_rm}, - {"rmdir", " Removes a folder. Usage:\n\r rmdir \n\r", &cmd_rmdir}, - {"sleep", " Stops the shell for the desired period. Usage:\n\r sleep