Sun 12 Jan 19:29:58 CET 2025
This commit is contained in:
		
							parent
							
								
									f7ff668fa6
								
							
						
					
					
						commit
						cd8c4f8af7
					
				| 
						 | 
					@ -4,6 +4,7 @@ This software is distributed under the GNU General Public License.
 | 
				
			||||||
See the file LICENSE for details.
 | 
					See the file LICENSE for details.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "kernel/config.h"
 | 
				
			||||||
#include "kernel/types.h"
 | 
					#include "kernel/types.h"
 | 
				
			||||||
#include "kernel/error.h"
 | 
					#include "kernel/error.h"
 | 
				
			||||||
#include "kernel/ascii.h"
 | 
					#include "kernel/ascii.h"
 | 
				
			||||||
| 
						 | 
					@ -22,6 +23,10 @@ See the file LICENSE for details.
 | 
				
			||||||
#include "bcache.h"
 | 
					#include "bcache.h"
 | 
				
			||||||
#include "printf.h"
 | 
					#include "printf.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef KSHELL_EXT
 | 
				
			||||||
 | 
					  #include "kshell_ext.c"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int kshell_mount( const char *devname, int unit, const char *fs_type)
 | 
					static int kshell_mount( const char *devname, int unit, const char *fs_type)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if(current->ktable[KNO_STDDIR]) {
 | 
						if(current->ktable[KNO_STDDIR]) {
 | 
				
			||||||
| 
						 | 
					@ -350,7 +355,12 @@ int kshell_execute(int argc, const char **argv)
 | 
				
			||||||
		bcache_flush_all();
 | 
							bcache_flush_all();
 | 
				
			||||||
	} else if(!strcmp(cmd, "help")) {
 | 
						} else if(!strcmp(cmd, "help")) {
 | 
				
			||||||
		printf("Kernel Shell Commands:\nrun <path> <args>\nstart <path> <args>\nkill <pid>\nreap <pid>\nwait\nlist\nautomount\nmount <device> <unit> <fstype>\numount\nformat <device> <unit><fstype>\ninstall atapi <srcunit> ata <dstunit>\nmkdir <path>\nremove <path>time\nbcache_stats\nbcache_flush\nreboot\nhelp\n\n");
 | 
							printf("Kernel Shell Commands:\nrun <path> <args>\nstart <path> <args>\nkill <pid>\nreap <pid>\nwait\nlist\nautomount\nmount <device> <unit> <fstype>\numount\nformat <device> <unit><fstype>\ninstall atapi <srcunit> ata <dstunit>\nmkdir <path>\nremove <path>time\nbcache_stats\nbcache_flush\nreboot\nhelp\n\n");
 | 
				
			||||||
	} else {
 | 
					#ifdef KSHELL_EXT_EXECUTE
 | 
				
			||||||
 | 
					  #include "kshell_ext_execute.c"
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
						else {
 | 
				
			||||||
		printf("%s: command not found\n", argv[0]);
 | 
							printf("%s: command not found\n", argv[0]);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user