Browse Source

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)

Waldemar Brodkorb 11 years ago
parent
commit
66930ee6c1
2 changed files with 18 additions and 11 deletions
  1. 1 1
      package/busybox/config/shell/Config.in
  2. 17 10
      target/config/Config.in.runtime

+ 1 - 1
package/busybox/config/shell/Config.in

@@ -8,7 +8,7 @@ menu "Shells"
 
 
 config BUSYBOX_ASH
 config BUSYBOX_ASH
 	bool "ash"
 	bool "ash"
-	default y
+	default n
 	depends on !BUSYBOX_NOMMU
 	depends on !BUSYBOX_NOMMU
 	help
 	help
 	  Tha 'ash' shell adds about 60k in the default configuration and is
 	  Tha 'ash' shell adds about 60k in the default configuration and is

+ 17 - 10
target/config/Config.in.runtime

@@ -50,7 +50,7 @@ config ADK_RUNTIME_CONSOLE_VGA
 config ADK_RUNTIME_CONSOLE_SERIAL
 config ADK_RUNTIME_CONSOLE_SERIAL
 	bool "console output on serial"
 	bool "console output on serial"
 	help
 	help
-	  Start getty on serial console. (ttyS0)
+	  Start getty on serial console.
 
 
 config ADK_RUNTIME_CONSOLE_BOTH
 config ADK_RUNTIME_CONSOLE_BOTH
 	bool "console output on VGA and serial"
 	bool "console output on VGA and serial"
@@ -74,7 +74,14 @@ config ADK_RUNTIME_KBD_LAYOUT
 
 
 choice
 choice
 prompt "Initial login shell for the root user"
 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
 config ADK_ROOTSH_ASH
 	select BUSYBOX_ASH
 	select BUSYBOX_ASH
@@ -114,7 +121,14 @@ endchoice
 
 
 choice
 choice
 prompt "System /bin/sh (POSIX script shell)"
 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
 config ADK_BINSH_ASH
 	select BUSYBOX_ASH
 	select BUSYBOX_ASH
@@ -131,13 +145,6 @@ config ADK_BINSH_BASH
 	  Use GNU bash as system shell. This is discouraged due to
 	  Use GNU bash as system shell. This is discouraged due to
 	  its size and slowness.
 	  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
 config ADK_BINSH_ZSH
 	select ADK_PACKAGE_ZSH
 	select ADK_PACKAGE_ZSH
 	bool "zsh (The Z Shell)"
 	bool "zsh (The Z Shell)"