actually, we need the android lsmod to be a builtin not an alias…

This commit is contained in:
tg
2011-03-16 20:56:33 +00:00
parent 1c22b3cc48
commit 5239e8ea4c
3 changed files with 25 additions and 78 deletions

7
main.c
View File

@ -33,7 +33,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.183 2011/03/16 20:43:34 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.184 2011/03/16 20:56:33 tg Exp $");
extern char **environ;
@ -70,10 +70,7 @@ static const char *initcoms[] = {
/* not "alias -t --": hash -r needs to work */
"hash=alias -t",
"type=whence -v",
#if defined(ANDROID)
/* evil hack */
"lsmod=cat /proc/modules",
#elif !defined(MKSH_UNEMPLOYED)
#if !defined(ANDROID) && !defined(MKSH_UNEMPLOYED)
/* not in Android for political reasons */
/* not in ARGE mksh due to no job control */
"stop=kill -STOP",