| 1 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 2 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 3 |
|
|---|
| 4 | comment "Building shell packages and configuring their features"
|
|---|
| 5 | source "package/busybox/config/shell/Config.in"
|
|---|
| 6 | source "package/mksh/Config.in"
|
|---|
| 7 | comment "Selecting appropriate shells from these enabled above"
|
|---|
| 8 | choice
|
|---|
| 9 | prompt "Choose the default bourne shell (/bin/sh)"
|
|---|
| 10 | default BUSYBOX_CONFIG_FEATURE_SH_IS_ASH if BUSYBOX_CONFIG_ASH
|
|---|
| 11 | default FWRT_PACKAGE_MKSH_AS_BINSH if FWRT_PACKAGE_MKSH
|
|---|
| 12 | help
|
|---|
| 13 | Choose a shell which is to be used for /bin/sh.
|
|---|
| 14 | The ash shell is the most bash-compatible shell
|
|---|
| 15 | and full-featured one in busybox; mksh is a bit
|
|---|
| 16 | more heavy-weight but feature-complete. The other
|
|---|
| 17 | shells probably do not work as /bin/sh in FreeWRT.
|
|---|
| 18 |
|
|---|
| 19 | config BUSYBOX_CONFIG_FEATURE_SH_IS_ASH
|
|---|
| 20 | depends BUSYBOX_CONFIG_ASH
|
|---|
| 21 | bool "ash (busybox)"
|
|---|
| 22 | help
|
|---|
| 23 | Tha 'ash' shell adds about 60k in the default configuration and is
|
|---|
| 24 | the most complete and most pedantically correct shell included with
|
|---|
| 25 | busybox. This shell is actually a derivative of the Debian 'dash'
|
|---|
| 26 | shell (by Herbert Xu), which was created by porting the 'ash' shell
|
|---|
| 27 | (written by Kenneth Almquist) from NetBSD.
|
|---|
| 28 |
|
|---|
| 29 | config FWRT_PACKAGE_MKSH_AS_BINSH
|
|---|
| 30 | depends FWRT_PACKAGE_MKSH
|
|---|
| 31 | bool "mksh"
|
|---|
| 32 | help
|
|---|
| 33 | mksh is the MirBSD enhanced version of the Public Domain Korn
|
|---|
| 34 | shell (pdksh), a bourne-compatible shell which is largely similar
|
|---|
| 35 | to the original AT&T Korn shell. It includes bug fixes and
|
|---|
| 36 | feature improvements in order to produce a modern, robust shell
|
|---|
| 37 | good for interactive and especially script use. Some sh/ksh/pdksh
|
|---|
| 38 | compatibility kludges have been removed.
|
|---|
| 39 |
|
|---|
| 40 | config BUSYBOX_CONFIG_FEATURE_SH_IS_HUSH
|
|---|
| 41 | depends BUSYBOX_CONFIG_HUSH
|
|---|
| 42 | bool "hush (busybox)"
|
|---|
| 43 | help
|
|---|
| 44 | hush is a very small shell (just 18k) and it has fairly complete
|
|---|
| 45 | Bourne shell grammar. It even handles all the normal flow control
|
|---|
| 46 | options such as if/then/elif/else/fi, for/in/do/done, while loops,
|
|---|
| 47 | etc.
|
|---|
| 48 |
|
|---|
| 49 | It does not handle case/esac, select, function, here documents ( <<
|
|---|
| 50 | word ), arithmetic expansion, aliases, brace expansion, tilde
|
|---|
| 51 | expansion, &> and >& redirection of stdout+stderr, etc.
|
|---|
| 52 |
|
|---|
| 53 | endchoice
|
|---|
| 54 |
|
|---|
| 55 | choice
|
|---|
| 56 | prompt "Choose the login shell for the admin user"
|
|---|
| 57 | default FWRT_BASEFILES_ADMIN_ASH if BUSYBOX_CONFIG_ASH
|
|---|
| 58 | default FWRT_BASEFILES_ADMIN_MKSH if FWRT_PACKAGE_MKSH
|
|---|
| 59 | default FWRT_BASEFILES_ADMIN_SH if (!BUSYBOX_CONFIG_ASH && !FWRT_PACKAGE_MKSH)
|
|---|
| 60 | help
|
|---|
| 61 | Choose a shell which is to be used as the default login
|
|---|
| 62 | shell for the "admin" user. Only shells selected above
|
|---|
| 63 | can be chosen.
|
|---|
| 64 |
|
|---|
| 65 | config FWRT_BASEFILES_ADMIN_ASH
|
|---|
| 66 | depends BUSYBOX_CONFIG_ASH
|
|---|
| 67 | bool "ash (busybox)"
|
|---|
| 68 | help
|
|---|
| 69 | Tha 'ash' shell adds about 60k in the default configuration and is
|
|---|
| 70 | the most complete and most pedantically correct shell included with
|
|---|
| 71 | busybox. This shell is actually a derivative of the Debian 'dash'
|
|---|
| 72 | shell (by Herbert Xu), which was created by porting the 'ash' shell
|
|---|
| 73 | (written by Kenneth Almquist) from NetBSD.
|
|---|
| 74 |
|
|---|
| 75 | config FWRT_BASEFILES_ADMIN_MKSH
|
|---|
| 76 | depends FWRT_PACKAGE_MKSH
|
|---|
| 77 | bool "mksh"
|
|---|
| 78 | help
|
|---|
| 79 | mksh is the MirBSD enhanced version of the Public Domain Korn
|
|---|
| 80 | shell (pdksh), a bourne-compatible shell which is largely similar
|
|---|
| 81 | to the original AT&T Korn shell. It includes bug fixes and
|
|---|
| 82 | feature improvements in order to produce a modern, robust shell
|
|---|
| 83 | good for interactive and especially script use. Some sh/ksh/pdksh
|
|---|
| 84 | compatibility kludges have been removed.
|
|---|
| 85 |
|
|---|
| 86 | config FWRT_BASEFILES_ADMIN_HUSH
|
|---|
| 87 | depends BUSYBOX_CONFIG_HUSH
|
|---|
| 88 | bool "hush (busybox)"
|
|---|
| 89 | help
|
|---|
| 90 | hush is a very small shell (just 18k) and it has fairly complete
|
|---|
| 91 | Bourne shell grammar. It even handles all the normal flow control
|
|---|
| 92 | options such as if/then/elif/else/fi, for/in/do/done, while loops,
|
|---|
| 93 | etc.
|
|---|
| 94 |
|
|---|
| 95 | It does not handle case/esac, select, function, here documents ( <<
|
|---|
| 96 | word ), arithmetic expansion, aliases, brace expansion, tilde
|
|---|
| 97 | expansion, &> and >& redirection of stdout+stderr, etc.
|
|---|
| 98 |
|
|---|
| 99 | config FWRT_BASEFILES_ADMIN_SH
|
|---|
| 100 | bool "/bin/sh"
|
|---|
| 101 | help
|
|---|
| 102 | Fall-back: use /bin/sh, whatever it is.
|
|---|
| 103 |
|
|---|
| 104 | endchoice
|
|---|