2017-09-06 11:19:45 +00:00
|
|
|
# DO NOT EDIT. This file is generated from Config.src
|
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2020-07-02 15:30:56 +00:00
|
|
|
# see docs/Kconfig-language.txt.
|
2017-09-06 11:19:45 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
menu "Shells"
|
|
|
|
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Choose which shell is aliased to 'sh' name"
|
|
|
|
default BUSYBOX_CONFIG_SH_IS_ASH
|
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Choose which shell you want to be executed by 'sh' alias.
|
|
|
|
The ash shell is the most bash compatible and full featured one.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
# note: cannot use "select ASH" here, it breaks "make allnoconfig"
|
|
|
|
config BUSYBOX_CONFIG_SH_IS_ASH
|
|
|
|
depends on !BUSYBOX_CONFIG_NOMMU
|
|
|
|
bool "ash"
|
2021-06-14 10:30:08 +00:00
|
|
|
select BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Choose ash to be the shell executed by 'sh' name.
|
|
|
|
The ash code will be built into busybox. If you don't select
|
|
|
|
"ash" choice (CONFIG_ASH), this shell may only be invoked by
|
|
|
|
the name 'sh' (and not 'ash').
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_SH_IS_HUSH
|
|
|
|
bool "hush"
|
2021-06-14 10:30:08 +00:00
|
|
|
select BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Choose hush to be the shell executed by 'sh' name.
|
|
|
|
The hush code will be built into busybox. If you don't select
|
|
|
|
"hush" choice (CONFIG_HUSH), this shell may only be invoked by
|
|
|
|
the name 'sh' (and not 'hush').
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_SH_IS_NONE
|
|
|
|
bool "none"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Choose which shell is aliased to 'bash' name"
|
|
|
|
default BUSYBOX_CONFIG_BASH_IS_NONE
|
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Choose which shell you want to be executed by 'bash' alias.
|
|
|
|
The ash shell is the most bash compatible and full featured one,
|
|
|
|
although compatibility is far from being complete.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
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.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
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.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_BASH_IS_ASH
|
|
|
|
depends on !BUSYBOX_CONFIG_NOMMU
|
|
|
|
bool "ash"
|
2021-06-14 10:30:08 +00:00
|
|
|
select BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Choose ash to be the shell executed by 'bash' name.
|
|
|
|
The ash code will be built into busybox. If you don't select
|
|
|
|
"ash" choice (CONFIG_ASH), this shell may only be invoked by
|
|
|
|
the name 'bash' (and not 'ash').
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_BASH_IS_HUSH
|
|
|
|
bool "hush"
|
2021-06-14 10:30:08 +00:00
|
|
|
select BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Choose hush to be the shell executed by 'bash' name.
|
|
|
|
The hush code will be built into busybox. If you don't select
|
|
|
|
"hush" choice (CONFIG_HUSH), this shell may only be invoked by
|
|
|
|
the name 'bash' (and not 'hush').
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_BASH_IS_NONE
|
|
|
|
bool "none"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
|
2021-06-14 10:30:08 +00:00
|
|
|
config BUSYBOX_CONFIG_SHELL_ASH
|
|
|
|
bool #hidden option
|
|
|
|
depends on !BUSYBOX_CONFIG_NOMMU
|
|
|
|
|
2017-09-06 11:19:45 +00:00
|
|
|
config BUSYBOX_CONFIG_ASH
|
2020-07-02 15:30:56 +00:00
|
|
|
bool "ash (78 kb)"
|
2017-09-06 11:19:45 +00:00
|
|
|
default BUSYBOX_DEFAULT_ASH
|
|
|
|
depends on !BUSYBOX_CONFIG_NOMMU
|
2021-06-14 10:30:08 +00:00
|
|
|
select BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
The most complete and most pedantically correct shell included with
|
|
|
|
busybox. This shell is actually a derivative of the Debian 'dash'
|
|
|
|
shell (by Herbert Xu), which was created by porting the 'ash' shell
|
|
|
|
(written by Kenneth Almquist) from NetBSD.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
# ash options
|
|
|
|
# note: Don't remove !NOMMU part in the next line; it would break
|
|
|
|
# menuconfig's indenting.
|
2021-06-14 10:30:08 +00:00
|
|
|
if !NOMMU && (BUSYBOX_CONFIG_SHELL_ASH || BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH)
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_OPTIMIZE_FOR_SIZE
|
|
|
|
bool "Optimize for size instead of speed"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_OPTIMIZE_FOR_SIZE
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_INTERNAL_GLOB
|
|
|
|
bool "Use internal glob() implementation"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_INTERNAL_GLOB # Y is bigger, but because of uclibc glob() bug, let Y be default for now
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Do not use glob() function from libc, use internal implementation.
|
|
|
|
Use this if you are getting "glob.h: No such file or directory"
|
|
|
|
or similar build errors.
|
|
|
|
Note that as of now (2017-01), uclibc and musl glob() both have bugs
|
|
|
|
which would break ash if you select N here.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_BASH_COMPAT
|
|
|
|
bool "bash-compatible extensions"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_BASH_COMPAT
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
config BUSYBOX_CONFIG_ASH_BASH_SOURCE_CURDIR
|
|
|
|
bool "'source' and '.' builtins search current directory after $PATH"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_BASH_SOURCE_CURDIR # do not encourage non-standard behavior
|
|
|
|
depends on BUSYBOX_CONFIG_ASH_BASH_COMPAT
|
|
|
|
help
|
|
|
|
This is not compliant with standards. Avoid if possible.
|
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_BASH_NOT_FOUND_HOOK
|
|
|
|
bool "command_not_found_handle hook support"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_BASH_NOT_FOUND_HOOK
|
|
|
|
depends on BUSYBOX_CONFIG_ASH_BASH_COMPAT
|
|
|
|
help
|
|
|
|
Enable support for the 'command_not_found_handle' hook function,
|
|
|
|
from GNU bash, which allows for alternative command not found
|
|
|
|
handling.
|
|
|
|
|
2017-09-06 11:19:45 +00:00
|
|
|
config BUSYBOX_CONFIG_ASH_JOB_CONTROL
|
|
|
|
bool "Job control"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_JOB_CONTROL
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_ALIAS
|
|
|
|
bool "Alias support"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_ALIAS
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_RANDOM_SUPPORT
|
|
|
|
bool "Pseudorandom generator and $RANDOM variable"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_RANDOM_SUPPORT
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable pseudorandom generator and dynamic variable "$RANDOM".
|
|
|
|
Each read of "$RANDOM" will generate a new pseudorandom value.
|
|
|
|
You can reset the generator by using a specified start value.
|
|
|
|
After "unset RANDOM" the generator will switch off and this
|
|
|
|
variable will no longer have special treatment.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_EXPAND_PRMT
|
|
|
|
bool "Expand prompt string"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_EXPAND_PRMT
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
$PS# may contain volatile content, such as backquote commands.
|
|
|
|
This option recreates the prompt string from the environment
|
|
|
|
variable each time it is displayed.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_IDLE_TIMEOUT
|
|
|
|
bool "Idle timeout variable $TMOUT"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_IDLE_TIMEOUT
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable bash-like auto-logout after $TMOUT seconds of idle time.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_MAIL
|
|
|
|
bool "Check for new mail in interactive shell"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_MAIL
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable "check for new mail" function:
|
|
|
|
if set, $MAIL file and $MAILPATH list of files
|
|
|
|
are checked for mtime changes, and "you have mail"
|
|
|
|
message is printed if change is detected.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_ECHO
|
|
|
|
bool "echo builtin"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_ECHO
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_PRINTF
|
|
|
|
bool "printf builtin"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_PRINTF
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_TEST
|
|
|
|
bool "test builtin"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_TEST
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
treewide: sync with upstream (#10750)
* build: fix incomplete initramfs compression options
Requires: tools/lz4, tools/lzop
complete the wiring so that these options work:
* `CONFIG_KERNEL_INITRAMFS_COMPRESSION_LZO`
* `CONFIG_KERNEL_INITRAMFS_COMPRESSION_LZ4`
Signed-off-by: Tony Butler <spudz76@gmail.com>
[remove blocking dependencies for separate ramdisk, fix lzop options]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* include: sync with upstream
* toolchain/binutils: add support for version 2.40
Release notes:
https://sourceware.org/pipermail/binutils/2023-January/125671.html
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* toolchain/gcc: switch to version 12 by default
Also fix build error with gcc 12.
* toolchain/nasm: update to 2.16.01
ChangeLog:
Version 2.16.01
_This is a documentation update release only._
(*) Fix the creation of the table of contents in the HTML version of
the documentation.
Version 2.16
(*) Support for the `rdf' format has been discontinued and all the
RDOFF utilities has been removed.
(*) The `--reproducible' option now leaves the filename field in the
COFF object format blank. This was always rather useless since
it is only 18 characters long; as such debug formats have to
carry their own filename information anyway.
(*) Fix handling of MASM-syntax reserved memory (e.g. `dw ?') when
used in structure definitions.
(*) The preprocessor now supports functions, which can be less
verbose and more convenient than the equivalent code implemented
using directives. See section 4.4.
(*) Fix the handling of `%00' in the preprocessor.
(*) Fix incorrect handling of path names affecting error messages,
dependency generation, and debug format output.
(*) Support for the RDOFF output format and the RDOFF tools have
been removed. The RDOFF tools had already been broken since at
least NASM 2.14. For flat code the ELF output format
recommended; for segmented code the `obj' (OMF) output format.
(*) New facility: preprocessor functions. Preprocessor functions,
which are expanded similarly to single-line macros, can greatly
simplify code that in the past would have required a lengthy
list of directives and intermediate macros. See section 4.4.
(*) Single-line macros can now declare parameters (using a `&&'
prefix) that creates a quoted string, but does _not_ requote an
already quoted string. See section 4.2.1.
(*) Instruction table updated per public information available as of
November 2022.
(*) All warnings in the preprocessor have now been assigned warning
classes. See appendix A.
(*) Fix the invalid use of `RELA'-type relocations instead of `REL'-
type relocations when generating DWARF debug information for the
`elf32' output format.
(*) Fix the handling `at' in `istruc' when the structure contains
local labels. See section 5.9.2.
(*) When assembling with `--reproducible', don't encode the filename
in the COFF header for the `coff', `win32' or `win64' output
formats. The COFF header only has space for an 18-character
filename, which makes this field rather useless in the first
place. Debug output data, if enabled, is not affected.
(*) Fix incorrect size calculation when using MASM syntax for non-
byte reservations (e.g. `dw ?'.)
(*) Allow forcing an instruction in 64-bit mode to have a (possibly
redundant) REX prefix, using the syntax `{rex}' as a prefix.
(*) Add a `{vex}' prefix to enforce VEX (AVX) encoding of an
instruction, either using the 2- or 3-byte VEX prefixes.
(*) The `CPU' directive has been augmented to allow control of
generation of VEX (AVX) versus EVEX (AVX-512) instruction
formats, see section 7.11.
(*) Some recent instructions that previously have been only
available using EVEX encodings are now also encodable using VEX
(AVX) encodings. For backwards compatibility these encodings are
not enabled by default, but can be generated either via an
explicit `{vex}' prefix or by specifying either `CPU LATEVEX' or
`CPU NOEVEX'; see section 7.11.
(*) Document the already existing `%unimacro' directive. See section
4.5.12.
(*) Fix a code range generation bug in the DWARF debug format
(incorrect information in the `DW_AT_high_pc' field) for the ELF
output formats. This bug happened to cancel out with a bug in
older versions of the GNU binutils linker, but breaks with other
linkers and updated or other linkers that expect the spec to be
followed.
(*) Fix segment symbols with addends, e.g. `jmp _TEXT+10h:0' in
output formats that support segment relocations, e.g. the `obj'
format.
(*) Fix various crashes and hangs on invalid input.
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* toolchain: musl: Fix symbol loading in gdb
Fix DT_DEBUG handling on MIPS in musl libc.
With this change gdb will load the symbol files for shared libraries on MIPS too.
This patch was taken from this thread: https://www.openwall.com/lists/musl/2022/01/09/4
Signed-off-by: Hauke Mehrtens <hmehrtens@maxlinear.com>
* tools: sync with upstream
* build: fix issues with targets installed via feeds
- fix including modules.mk when a target is being replaced
- fix calling make targets from target/linux
Signed-off-by: Felix Fietkau <nbd@nbd.name>
* package: sync with upstream
Signed-off-by: Tony Butler <spudz76@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Signed-off-by: Hauke Mehrtens <hmehrtens@maxlinear.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Co-authored-by: Tony Butler <spudz76@gmail.com>
Co-authored-by: Hauke Mehrtens <hmehrtens@maxlinear.com>
Co-authored-by: Felix Fietkau <nbd@nbd.name>
2023-01-25 07:30:35 +00:00
|
|
|
config BUSYBOX_CONFIG_ASH_SLEEP
|
|
|
|
bool "sleep builtin"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_SLEEP
|
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
|
|
|
|
2017-09-06 11:19:45 +00:00
|
|
|
config BUSYBOX_CONFIG_ASH_HELP
|
|
|
|
bool "help builtin"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_HELP
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_GETOPTS
|
|
|
|
bool "getopts builtin"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_GETOPTS
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_ASH_CMDCMD
|
|
|
|
bool "command builtin"
|
|
|
|
default BUSYBOX_DEFAULT_ASH_CMDCMD
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable support for the 'command' builtin, which allows
|
|
|
|
you to run the specified command or builtin,
|
|
|
|
even when there is a function with the same name.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
endif # ash options
|
|
|
|
config BUSYBOX_CONFIG_CTTYHACK
|
2020-07-02 15:30:56 +00:00
|
|
|
bool "cttyhack (2.4 kb)"
|
2017-09-06 11:19:45 +00:00
|
|
|
default BUSYBOX_DEFAULT_CTTYHACK
|
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
One common problem reported on the mailing list is the "can't
|
|
|
|
access tty; job control turned off" error message, which typically
|
|
|
|
appears when one tries to use a shell with stdin/stdout on
|
|
|
|
/dev/console.
|
|
|
|
This device is special - it cannot be a controlling tty.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
The proper solution is to use the correct device instead of
|
|
|
|
/dev/console.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
cttyhack provides a "quick and dirty" solution to this problem.
|
|
|
|
It analyzes stdin with various ioctls, trying to determine whether
|
|
|
|
it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line).
|
|
|
|
On Linux it also checks sysfs for a pointer to the active console.
|
|
|
|
If cttyhack is able to find the real console device, it closes
|
|
|
|
stdin/out/err and reopens that device.
|
|
|
|
Then it executes the given program. Opening the device will make
|
|
|
|
that device a controlling tty. This may require cttyhack
|
|
|
|
to be a session leader.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
Example for /etc/inittab (for busybox init):
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
::respawn:/bin/cttyhack /bin/sh
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
Starting an interactive shell from boot shell script:
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
setsid cttyhack sh
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
Giving controlling tty to shell running with PID 1:
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
# exec cttyhack sh
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
Without cttyhack, you need to know exact tty name,
|
|
|
|
and do something like this:
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
# exec setsid sh -c 'exec sh </dev/tty1 >/dev/tty1 2>&1'
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
Starting getty on a controlling tty from a shell script:
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
# getty 115200 $(cttyhack)
|
2017-09-06 11:19:45 +00:00
|
|
|
config BUSYBOX_CONFIG_HUSH
|
2020-07-02 15:30:56 +00:00
|
|
|
bool "hush (68 kb)"
|
2017-09-06 11:19:45 +00:00
|
|
|
default BUSYBOX_DEFAULT_HUSH
|
2021-06-14 10:30:08 +00:00
|
|
|
select BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
hush is a small shell. It handles the normal flow control
|
|
|
|
constructs such as if/then/elif/else/fi, for/in/do/done, while loops,
|
|
|
|
case/esac. Redirections, here documents, $((arithmetic))
|
|
|
|
and functions are supported.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
It will compile and work on no-mmu systems.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
It does not handle select, aliases, tilde expansion,
|
|
|
|
&>file and >&file redirection of stdout+stderr.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2021-06-14 10:30:08 +00:00
|
|
|
config BUSYBOX_CONFIG_SHELL_HUSH
|
|
|
|
bool "Internal shell for embedded script support"
|
|
|
|
default BUSYBOX_DEFAULT_SHELL_HUSH
|
|
|
|
|
|
|
|
# hush options
|
|
|
|
# It's only needed to get "nice" menuconfig indenting.
|
|
|
|
if SHELL_HUSH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
|
|
|
|
|
2017-09-06 11:19:45 +00:00
|
|
|
config BUSYBOX_CONFIG_HUSH_BASH_COMPAT
|
|
|
|
bool "bash-compatible extensions"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_BASH_COMPAT
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_BRACE_EXPANSION
|
|
|
|
bool "Brace expansion"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_BRACE_EXPANSION
|
|
|
|
depends on BUSYBOX_CONFIG_HUSH_BASH_COMPAT
|
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable {abc,def} extension.
|
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_BASH_SOURCE_CURDIR
|
|
|
|
bool "'source' and '.' builtins search current directory after $PATH"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_BASH_SOURCE_CURDIR # do not encourage non-standard behavior
|
|
|
|
depends on BUSYBOX_CONFIG_HUSH_BASH_COMPAT
|
|
|
|
help
|
|
|
|
This is not compliant with standards. Avoid if possible.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
busybox: update to 1.35.0 (#8389)
* Revert "busybox: update to 1.33.2 bugfix release (#8386)"
This reverts commit a6f79ace50b31f5970987043aad4583e5236d676.
* busybox: fix compilation with GCC 10
When compiling busybox with GCC 10 and CONFIG_PKG_ASLR_PIE_ALL=y, there
are hundreds of errors like:
relocation R_MIPS16_26 against `xzalloc' cannot be used when making a
shared object; recompile with -fPIC
Simply solve this by no longer disabling PKG_ASLR_PIE, so that $(FPIC)
is properly added to the CFLAGS and LDFLAGS.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
* busybox: update to version 1.34.0
Update busybox to version 1.34.0
* Remove upstreamed patches (205, 530, 540)
* Remove one old patch that does not apply any more. (203)
That was originally introduced in 2008 with 563d23459,
but does not apply after busybox restructuring with
https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?h=1_34_stable&id=e6007c4911c3ea26925f9473b9f156a692585f30
and
https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?h=1_34_stable&id=1c7253726fcbab09917f143f0b703efbd2df55c3
* Refresh config and patches.
* Backport upstream fixes for
- MIPS compilation breakage and
- process substitution regression
Config refresh:
Refresh commands, run after busybox is first built once:
cd utils/busybox/
cd config/
../convert_menuconfig.pl ../../../../build_dir/target-aarch64_cortex-a53_musl/busybox-default/busybox-1.34.0
cd ..
./convert_defaults.pl < ../../../build_dir/target-aarch64_cortex-a53_musl/busybox-default/busybox-1.34.0/.config > Config-defaults.in
Manual edits needed afterward:
* Config-defaults.in: OpenWrt config symbol IPV6 logic applied to
BUSYBOX_DEFAULT_FEATURE_IPV6
* Config-defaults.in: OpenWrt configTARGET_bcm53xx logic applied to
BUSYBOX_DEFAULT_TRUNCATE (commit 547f1ec)
* Config-defaults.in: OpenWrt logic applied to
BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD (commit dc92917)
BUSYBOX_DEFAULT_UDHCPC_DEFAULT_INTERFACE (just "")
* config/editors/Config.in: Add USE_GLIBC dependency to
BUSYBOX_CONFIG_FEATURE_VI_REGEX_SEARCH (commit f141090)
* config/shell/Config.in : change at "Options common to all shells" the symbol
SHELL_ASH --> BUSYBOX_CONFIG_SHELL_ASH
(discussion in http://lists.openwrt.org/pipermail/openwrt-devel/2021-January/033140.html
Apparently our script does not see the hidden option while
prepending config options with "BUSYBOX_CONFIG_" which leads to a
missed dependency when the options are later evaluated.)
* Edit Config.in files by adding quotes to sourced items in
config/Config.in, config/networking/Config.in and config/util-linux/Config.in (commit 1da014f)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* busybox: update to 1.34.1
Update busybox to version 1.34.1, which is a minor
maintenance release. It contains just the two post-1.34.0
upstream patches that we earlier backported plus a few fixes
to awk.
* Remove the two backported upstream patches that are
now unnecessary.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* busybox: fix compatibility with BUSYBOX_CONFIG_INSTALL_NO_USR
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
* busybox: update to 1.35.0
Update busybox to 1.35.0
* refresh patches
Config refresh:
Refresh commands, run after busybox is first built once:
cd package/utils/busybox/config/
../convert_menuconfig.pl ../../../../build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/busybox-default/busybox-1.35.0
cd ..
./convert_defaults.pl ../../../build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/busybox-default/busybox-1.35.0/.config > Config-defaults.in
Manual edits needed after config refresh:
* Config-defaults.in: OpenWrt config symbol IPV6 logic applied to
BUSYBOX_DEFAULT_FEATURE_IPV6
* Config-defaults.in: OpenWrt configTARGET_bcm53xx logic applied to
BUSYBOX_DEFAULT_TRUNCATE (commit 547f1ec)
* Config-defaults.in: OpenWrt logic applied to
BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD (commit dc92917)
* config/editors/Config.in: Add USE_GLIBC dependency to
BUSYBOX_CONFIG_FEATURE_VI_REGEX_SEARCH (commit f141090)
* config/shell/Config.in : change at "Options common to all shells" the symbol
SHELL_ASH --> BUSYBOX_CONFIG_SHELL_ASH
(discussion in http://lists.openwrt.org/pipermail/openwrt-devel/2021-January/033140.html
Apparently our script does not see the hidden option while
prepending config options with "BUSYBOX_CONFIG_" which leads to a
missed dependency when the options are later evaluated.)
* Edit Config.in files by adding quotes to sourced items in
config/Config.in, config/networking/Config.in and config/util-linux/Config.in (commit 1da014f)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
Co-authored-by: Hannu Nyman <hannu.nyman@iki.fi>
Co-authored-by: Marius Dinu <m95d+git@psihoexpert.ro>
2022-01-14 04:15:24 +00:00
|
|
|
config BUSYBOX_CONFIG_HUSH_LINENO_VAR
|
|
|
|
bool "$LINENO variable (bashism)"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_LINENO_VAR
|
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
|
|
|
|
2017-09-06 11:19:45 +00:00
|
|
|
config BUSYBOX_CONFIG_HUSH_INTERACTIVE
|
|
|
|
bool "Interactive mode"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_INTERACTIVE
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable interactive mode (prompt and command editing).
|
|
|
|
Without this, hush simply reads and executes commands
|
|
|
|
from stdin just like a shell script from a file.
|
|
|
|
No prompt, no PS1/PS2 magic shell variables.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_SAVEHISTORY
|
|
|
|
bool "Save command history to .hush_history"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_SAVEHISTORY
|
|
|
|
depends on BUSYBOX_CONFIG_HUSH_INTERACTIVE && BUSYBOX_CONFIG_FEATURE_EDITING_SAVEHISTORY
|
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_JOB
|
|
|
|
bool "Job control"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_JOB
|
|
|
|
depends on BUSYBOX_CONFIG_HUSH_INTERACTIVE
|
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable job control: Ctrl-Z backgrounds, Ctrl-C interrupts current
|
|
|
|
command (not entire shell), fg/bg builtins work. Without this option,
|
|
|
|
"cmd &" still works by simply spawning a process and immediately
|
|
|
|
prompting for next command (or executing next command in a script),
|
|
|
|
but no separate process group is formed.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_TICK
|
2020-07-02 15:30:56 +00:00
|
|
|
bool "Support command substitution"
|
2017-09-06 11:19:45 +00:00
|
|
|
default BUSYBOX_DEFAULT_HUSH_TICK
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable `command` and $(command).
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_IF
|
|
|
|
bool "Support if/then/elif/else/fi"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_IF
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_LOOPS
|
|
|
|
bool "Support for, while and until loops"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_LOOPS
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_CASE
|
|
|
|
bool "Support case ... esac statement"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_CASE
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable case ... esac statement. +400 bytes.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_FUNCTIONS
|
|
|
|
bool "Support funcname() { commands; } syntax"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_FUNCTIONS
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable support for shell functions. +800 bytes.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_LOCAL
|
|
|
|
bool "local builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_LOCAL
|
|
|
|
depends on BUSYBOX_CONFIG_HUSH_FUNCTIONS
|
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable support for local variables in functions.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_RANDOM_SUPPORT
|
|
|
|
bool "Pseudorandom generator and $RANDOM variable"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_RANDOM_SUPPORT
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable pseudorandom generator and dynamic variable "$RANDOM".
|
|
|
|
Each read of "$RANDOM" will generate a new pseudorandom value.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_MODE_X
|
|
|
|
bool "Support 'hush -x' option and 'set -x' command"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_MODE_X
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
This instructs hush to print commands before execution.
|
|
|
|
Adds ~300 bytes.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_ECHO
|
|
|
|
bool "echo builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_ECHO
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_PRINTF
|
|
|
|
bool "printf builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_PRINTF
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_TEST
|
|
|
|
bool "test builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_TEST
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_HELP
|
|
|
|
bool "help builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_HELP
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_EXPORT
|
|
|
|
bool "export builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_EXPORT
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_EXPORT_N
|
|
|
|
bool "Support 'export -n' option"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_EXPORT_N
|
|
|
|
depends on BUSYBOX_CONFIG_HUSH_EXPORT
|
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
export -n unexports variables. It is a bash extension.
|
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_READONLY
|
|
|
|
bool "readonly builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_READONLY
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2020-07-02 15:30:56 +00:00
|
|
|
help
|
|
|
|
Enable support for read-only variables.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_KILL
|
|
|
|
bool "kill builtin (supports kill %jobspec)"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_KILL
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_WAIT
|
|
|
|
bool "wait builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_WAIT
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
config BUSYBOX_CONFIG_HUSH_COMMAND
|
|
|
|
bool "command builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_COMMAND
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2020-07-02 15:30:56 +00:00
|
|
|
|
2017-09-06 11:19:45 +00:00
|
|
|
config BUSYBOX_CONFIG_HUSH_TRAP
|
|
|
|
bool "trap builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_TRAP
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_TYPE
|
|
|
|
bool "type builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_TYPE
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
config BUSYBOX_CONFIG_HUSH_TIMES
|
|
|
|
bool "times builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_TIMES
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2020-07-02 15:30:56 +00:00
|
|
|
|
2017-09-06 11:19:45 +00:00
|
|
|
config BUSYBOX_CONFIG_HUSH_READ
|
|
|
|
bool "read builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_READ
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_SET
|
|
|
|
bool "set builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_SET
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_UNSET
|
|
|
|
bool "unset builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_UNSET
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_ULIMIT
|
|
|
|
bool "ulimit builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_ULIMIT
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_HUSH_UMASK
|
|
|
|
bool "umask builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_UMASK
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
config BUSYBOX_CONFIG_HUSH_GETOPTS
|
|
|
|
bool "getopts builtin"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_GETOPTS
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
2020-07-02 15:30:56 +00:00
|
|
|
|
2017-09-06 11:19:45 +00:00
|
|
|
config BUSYBOX_CONFIG_HUSH_MEMLEAK
|
|
|
|
bool "memleak builtin (debugging)"
|
|
|
|
default BUSYBOX_DEFAULT_HUSH_MEMLEAK
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_HUSH
|
|
|
|
|
|
|
|
endif # hush options
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
comment "Options common to all shells"
|
2021-06-14 10:30:08 +00:00
|
|
|
if BUSYBOX_CONFIG_SHELL_ASH || BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_FEATURE_SH_MATH
|
|
|
|
bool "POSIX math support"
|
|
|
|
default BUSYBOX_DEFAULT_FEATURE_SH_MATH
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH || BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Enable math support in the shell via $((...)) syntax.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_FEATURE_SH_MATH_64
|
|
|
|
bool "Extend POSIX math support to 64 bit"
|
|
|
|
default BUSYBOX_DEFAULT_FEATURE_SH_MATH_64
|
|
|
|
depends on BUSYBOX_CONFIG_FEATURE_SH_MATH
|
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_FEATURE_SH_MATH_BASE
|
|
|
|
bool "Support BASE#nnnn literals"
|
|
|
|
default BUSYBOX_DEFAULT_FEATURE_SH_MATH_BASE
|
|
|
|
depends on BUSYBOX_CONFIG_FEATURE_SH_MATH
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_FEATURE_SH_EXTRA_QUIET
|
|
|
|
bool "Hide message on interactive shell startup"
|
|
|
|
default BUSYBOX_DEFAULT_FEATURE_SH_EXTRA_QUIET
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH || BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
Remove the busybox introduction when starting a shell.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_FEATURE_SH_STANDALONE
|
|
|
|
bool "Standalone shell"
|
|
|
|
default BUSYBOX_DEFAULT_FEATURE_SH_STANDALONE
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH || BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
This option causes busybox shells to use busybox applets
|
|
|
|
in preference to executables in the PATH whenever possible. For
|
|
|
|
example, entering the command 'ifconfig' into the shell would cause
|
|
|
|
busybox to use the ifconfig busybox applet. Specifying the fully
|
|
|
|
qualified executable name, such as '/sbin/ifconfig' will still
|
|
|
|
execute the /sbin/ifconfig executable on the filesystem. This option
|
|
|
|
is generally used when creating a statically linked version of busybox
|
|
|
|
for use as a rescue shell, in the event that you screw up your system.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
This is implemented by re-execing /proc/self/exe (typically)
|
|
|
|
with right parameters.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
However, there are drawbacks: it is problematic in chroot jails
|
|
|
|
without mounted /proc, and ps/top may show command name as 'exe'
|
|
|
|
for applets started this way.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_FEATURE_SH_NOFORK
|
|
|
|
bool "Run 'nofork' applets directly"
|
|
|
|
default BUSYBOX_DEFAULT_FEATURE_SH_NOFORK
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH || BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
This option causes busybox shells 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).
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
This may significantly speed up some shell scripts.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
This feature is relatively new. Use with care. Report bugs
|
|
|
|
to project mailing list.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
2020-07-02 15:30:56 +00:00
|
|
|
config BUSYBOX_CONFIG_FEATURE_SH_READ_FRAC
|
|
|
|
bool "read -t N.NNN support (+110 bytes)"
|
|
|
|
default BUSYBOX_DEFAULT_FEATURE_SH_READ_FRAC
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH || BUSYBOX_CONFIG_SHELL_HUSH
|
2020-07-02 15:30:56 +00:00
|
|
|
help
|
|
|
|
Enable support for fractional second timeout in read builtin.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_FEATURE_SH_HISTFILESIZE
|
|
|
|
bool "Use $HISTFILESIZE"
|
|
|
|
default BUSYBOX_DEFAULT_FEATURE_SH_HISTFILESIZE
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH || BUSYBOX_CONFIG_SHELL_HUSH
|
2017-09-06 11:19:45 +00:00
|
|
|
help
|
2020-07-02 15:30:56 +00:00
|
|
|
This option makes busybox shells to use $HISTFILESIZE variable
|
|
|
|
to set shell history size. Note that its max value is capped
|
|
|
|
by "History size" setting in library tuning section.
|
|
|
|
|
|
|
|
config BUSYBOX_CONFIG_FEATURE_SH_EMBEDDED_SCRIPTS
|
|
|
|
bool "Embed scripts in the binary"
|
|
|
|
default BUSYBOX_DEFAULT_FEATURE_SH_EMBEDDED_SCRIPTS
|
2021-06-14 10:30:08 +00:00
|
|
|
depends on BUSYBOX_CONFIG_SHELL_ASH || BUSYBOX_CONFIG_SHELL_HUSH
|
2020-07-02 15:30:56 +00:00
|
|
|
help
|
|
|
|
Allow scripts to be compressed and embedded in the busybox
|
|
|
|
binary. The scripts should be placed in the 'embed' directory
|
|
|
|
at build time. Like applets, scripts can be run as
|
|
|
|
'busybox SCRIPT ...' or by linking their name to the binary.
|
|
|
|
|
|
|
|
This also allows applets to be implemented as scripts: place
|
|
|
|
the script in 'applets_sh' and a stub C file containing
|
|
|
|
configuration in the appropriate subsystem directory.
|
2017-09-06 11:19:45 +00:00
|
|
|
|
|
|
|
endif # Options common to all shells
|
|
|
|
|
|
|
|
endmenu
|