2002-12-05 14:11:41 +05:30
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see scripts/kbuild/config-language.txt.
|
|
|
|
#
|
|
|
|
|
2005-09-24 11:19:36 +05:30
|
|
|
menu "Shells"
|
2002-12-05 14:11:41 +05:30
|
|
|
|
2010-06-08 15:45:11 +05:30
|
|
|
INSERT
|
|
|
|
|
2010-06-07 01:44:58 +05:30
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Choose which shell is aliased to 'sh' name"
|
|
|
|
default FEATURE_SH_IS_ASH
|
|
|
|
help
|
|
|
|
Choose which shell you want to be executed by 'sh' alias.
|
|
|
|
The ash shell is the most bash compatible and full featured one.
|
|
|
|
|
2010-06-07 17:04:34 +05:30
|
|
|
# note: cannot use "select ASH" here, it breaks "make allnoconfig"
|
2010-06-07 01:44:58 +05:30
|
|
|
config FEATURE_SH_IS_ASH
|
|
|
|
depends on ASH
|
|
|
|
bool "ash"
|
|
|
|
depends on !NOMMU
|
|
|
|
|
|
|
|
config FEATURE_SH_IS_HUSH
|
|
|
|
depends on HUSH
|
|
|
|
bool "hush"
|
|
|
|
|
|
|
|
config FEATURE_SH_IS_NONE
|
|
|
|
bool "none"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Choose which shell is aliased to 'bash' name"
|
|
|
|
default FEATURE_BASH_IS_NONE
|
|
|
|
help
|
|
|
|
Choose which shell you want to be executed by 'bash' alias.
|
|
|
|
The ash shell is the most bash compatible and full featured one.
|
|
|
|
|
|
|
|
Note that selecting this option does not switch on any bash
|
|
|
|
compatibility code. It merely makes it possible to install
|
|
|
|
/bin/bash (sym)link and run scripts which start with
|
|
|
|
#!/bin/bash line.
|
|
|
|
|
|
|
|
Many systems use it in scripts which use bash-specific features,
|
|
|
|
even simple ones like $RANDOM. Without this option, busybox
|
|
|
|
can't be used for running them because it won't recongnize
|
|
|
|
"bash" as a supported applet name.
|
|
|
|
|
|
|
|
config FEATURE_BASH_IS_ASH
|
|
|
|
depends on ASH
|
|
|
|
bool "ash"
|
|
|
|
depends on !NOMMU
|
|
|
|
|
|
|
|
config FEATURE_BASH_IS_HUSH
|
|
|
|
depends on HUSH
|
|
|
|
bool "hush"
|
|
|
|
|
|
|
|
config FEATURE_BASH_IS_NONE
|
|
|
|
bool "none"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
|
2009-04-02 15:32:37 +05:30
|
|
|
config SH_MATH_SUPPORT
|
|
|
|
bool "POSIX math support"
|
|
|
|
default y
|
|
|
|
depends on ASH || HUSH
|
|
|
|
help
|
|
|
|
Enable math support in the shell via $((...)) syntax.
|
|
|
|
|
|
|
|
config SH_MATH_SUPPORT_64
|
|
|
|
bool "Extend POSIX math support to 64 bit"
|
2010-06-06 07:44:28 +05:30
|
|
|
default y
|
2009-04-02 15:32:37 +05:30
|
|
|
depends on SH_MATH_SUPPORT
|
|
|
|
help
|
|
|
|
Enable 64-bit math support in the shell. This will make the shell
|
|
|
|
slightly larger, but will allow computation with very large numbers.
|
|
|
|
This is not in POSIX, so do not rely on this in portable code.
|
|
|
|
|
2006-10-05 15:47:08 +05:30
|
|
|
config FEATURE_SH_EXTRA_QUIET
|
2004-01-03 17:37:32 +05:30
|
|
|
bool "Hide message on interactive shell startup"
|
2010-06-06 07:44:28 +05:30
|
|
|
default y
|
|
|
|
depends on HUSH || ASH
|
2002-12-05 14:11:41 +05:30
|
|
|
help
|
2004-01-03 17:37:32 +05:30
|
|
|
Remove the busybox introduction when starting a shell.
|
2002-12-05 14:11:41 +05:30
|
|
|
|
2007-04-11 04:33:30 +05:30
|
|
|
config FEATURE_SH_STANDALONE
|
2004-01-03 17:37:32 +05:30
|
|
|
bool "Standalone shell"
|
2002-12-09 16:40:40 +05:30
|
|
|
default n
|
2010-06-06 07:44:28 +05:30
|
|
|
depends on (HUSH || ASH) && FEATURE_PREFER_APPLETS
|
2002-12-09 16:40:40 +05:30
|
|
|
help
|
2007-05-08 22:57:17 +05:30
|
|
|
This option causes busybox shells to use busybox applets
|
2008-07-22 23:57:53 +05:30
|
|
|
in preference to executables in the PATH whenever possible. For
|
2004-04-07 15:04:27 +05:30
|
|
|
example, entering the command 'ifconfig' into the shell would cause
|
2008-07-22 23:57:53 +05:30
|
|
|
busybox to use the ifconfig busybox applet. Specifying the fully
|
2004-04-07 15:04:27 +05:30
|
|
|
qualified executable name, such as '/sbin/ifconfig' will still
|
2008-07-22 23:57:53 +05:30
|
|
|
execute the /sbin/ifconfig executable on the filesystem. This option
|
2006-03-04 00:32:50 +05:30
|
|
|
is generally used when creating a statically linked version of busybox
|
2004-04-07 15:04:27 +05:30
|
|
|
for use as a rescue shell, in the event that you screw up your system.
|
2002-12-05 14:11:41 +05:30
|
|
|
|
2007-05-08 22:57:17 +05:30
|
|
|
This is implemented by re-execing /proc/self/exe (typically)
|
|
|
|
with right parameters. Some selected applets ("NOFORK" applets)
|
|
|
|
can even be executed without creating new process.
|
|
|
|
Instead, busybox will call <applet>_main() internally.
|
|
|
|
|
|
|
|
However, this causes problems in chroot jails without mounted /proc
|
|
|
|
and with ps/top (command name can be shown as 'exe' for applets
|
|
|
|
started this way).
|
|
|
|
# untrue?
|
|
|
|
# Note that this will *also* cause applets to take precedence
|
2008-07-22 23:57:53 +05:30
|
|
|
# over shell builtins of the same name. So turning this on will
|
2007-05-08 22:57:17 +05:30
|
|
|
# eliminate any performance gained by turning on the builtin "echo"
|
|
|
|
# and "test" commands in ash.
|
|
|
|
# untrue?
|
|
|
|
# Note that when using this option, the shell will attempt to directly
|
2008-07-22 23:57:53 +05:30
|
|
|
# run '/bin/busybox'. If you do not have the busybox binary sitting in
|
2007-05-08 22:57:17 +05:30
|
|
|
# that exact location with that exact name, this option will not work at
|
|
|
|
# all.
|
2004-09-24 06:55:39 +05:30
|
|
|
|
2008-04-13 01:37:53 +05:30
|
|
|
config FEATURE_SH_NOFORK
|
|
|
|
bool "Run 'nofork' applets directly"
|
|
|
|
default n
|
2010-06-06 07:44:28 +05:30
|
|
|
depends on (HUSH || ASH) && FEATURE_PREFER_APPLETS
|
2008-04-13 01:37:53 +05:30
|
|
|
help
|
|
|
|
This option causes busybox shells [currently only ash]
|
|
|
|
to not execute typical fork/exec/wait sequence, but call <applet>_main
|
|
|
|
directly, if possible. (Sometimes it is not possible: for example,
|
|
|
|
this is not possible in pipes).
|
|
|
|
|
|
|
|
This will be done only for some applets (those which are marked
|
|
|
|
NOFORK in include/applets.h).
|
|
|
|
|
|
|
|
This may significantly speed up some shell scripts.
|
|
|
|
|
|
|
|
This feature is relatively new. Use with care.
|
|
|
|
|
2002-12-05 14:11:41 +05:30
|
|
|
endmenu
|