From 66930ee6c1e0032c50f64c25755e46c327631239 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 7 Mar 2014 10:16:30 +0100 Subject: switching to mksh as default shell. It just works nice, when trying to debug the bootup process. set -x wirh ash is not working well. And another reason, I have a good contact to the main developer of mksh. Actually he is a friend of mine ;). Adds 50 Kb to the default system (measured for x86 initramfs+kernel) --- package/busybox/config/shell/Config.in | 2 +- target/config/Config.in.runtime | 27 +++++++++++++++++---------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/package/busybox/config/shell/Config.in b/package/busybox/config/shell/Config.in index 52a96c7e2..488041e22 100644 --- a/package/busybox/config/shell/Config.in +++ b/package/busybox/config/shell/Config.in @@ -8,7 +8,7 @@ menu "Shells" config BUSYBOX_ASH bool "ash" - default y + default n depends on !BUSYBOX_NOMMU help Tha 'ash' shell adds about 60k in the default configuration and is diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime index c28fd55a3..b6716cbdd 100644 --- a/target/config/Config.in.runtime +++ b/target/config/Config.in.runtime @@ -50,7 +50,7 @@ config ADK_RUNTIME_CONSOLE_VGA config ADK_RUNTIME_CONSOLE_SERIAL bool "console output on serial" help - Start getty on serial console. (ttyS0) + Start getty on serial console. config ADK_RUNTIME_CONSOLE_BOTH bool "console output on VGA and serial" @@ -74,7 +74,14 @@ config ADK_RUNTIME_KBD_LAYOUT choice prompt "Initial login shell for the root user" -default ADK_ROOTSH_ASH +default ADK_ROOTSH_MKSH + +config ADK_ROOTSH_MKSH + select ADK_PACKAGE_MKSH + bool "mksh (MirBSD Korn Shell)" + help + Use mksh (a Korn Shell variant) as standard login shell + for the superuser. config ADK_ROOTSH_ASH select BUSYBOX_ASH @@ -114,7 +121,14 @@ endchoice choice prompt "System /bin/sh (POSIX script shell)" -default ADK_BINSH_ASH +default ADK_BINSH_MKSH + +config ADK_BINSH_MKSH + select ADK_PACKAGE_MKSH + bool "mksh (MirBSD Korn Shell)" + help + Use mksh (a Korn Shell variant) as system shell, which is + both small and powerful, so quite suited for this task. config ADK_BINSH_ASH select BUSYBOX_ASH @@ -131,13 +145,6 @@ config ADK_BINSH_BASH Use GNU bash as system shell. This is discouraged due to its size and slowness. -config ADK_BINSH_MKSH - select ADK_PACKAGE_MKSH - bool "mksh (MirBSD Korn Shell)" - help - Use mksh (a Korn Shell variant) as system shell, which is - both small and powerful, so quite suited for this task. - config ADK_BINSH_ZSH select ADK_PACKAGE_ZSH bool "zsh (The Z Shell)" -- cgit v1.2.3