Changeset 356d3a6 in freewrt for package/Config.shell


Ignore:
Timestamp:
Jul 27, 2006, 3:04:40 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
4e0f7fd
Parents:
f2e3b63e
Message:
  • bring shell configuration in one single place
  • enhance comments; make sure we always need one /bin/sh (currently not enforced; there will be no root shell selectable if none is available; the user shell will default to /bin/sh but that isn't supplied) and one /bin/ash (either busybox ash or mksh, both work fine)

Now feel free to go and add a GNU b(lo)a(t)sh package...
configuration is similar as mksh, and it can also be used
as /bin/sh (obviously) and /bin/ash.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@443 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/Config.shell

    rf2e3b63e r356d3a6  
    11# $FreeWRT$
    22
    3 comment "Shell selection"
     3comment "Shell selection --"
     4comment "Building shell packages and configuring their features"
     5source "package/busybox/config/shell/Config.in"
     6source "package/mksh/Config.in"
     7comment "Selecting appropriate shells from these enabled above"
    48choice
    59        prompt "Choose the default bourne shell (/bin/sh)"
    6         default BUSYBOX_CONFIG_FEATURE_SH_IS_ASH
     10        default BUSYBOX_CONFIG_FEATURE_SH_IS_ASH if BUSYBOX_CONFIG_ASH
     11        default FWRT_PACKAGE_MKSH_AS_BINSH if FWRT_PACKAGE_MKSH
    712        help
    813          Choose a shell which is to be used for /bin/sh.
    914          The ash shell is the most bash-compatible shell
    1015          and full-featured one in busybox; mksh is a bit
    11           more heavy-weight but feature-complete.
     16          more heavy-weight but feature-complete. The other
     17          shells probably do not work as /bin/sh in FreeWRT.
    1218
    1319config BUSYBOX_CONFIG_FEATURE_SH_IS_ASH
    14         select BUSYBOX_CONFIG_ASH
     20        depends BUSYBOX_CONFIG_ASH
    1521        bool "ash (busybox)"
    1622        help
     
    2228
    2329config FWRT_PACKAGE_MKSH_AS_BINSH
    24         select FWRT_PACKAGE_MKSH
     30        depends FWRT_PACKAGE_MKSH
    2531        select BUSYBOX_CONFIG_FEATURE_SH_IS_NONE
    2632        bool "mksh"
     
    3440
    3541config BUSYBOX_CONFIG_FEATURE_SH_IS_HUSH
    36         select BUSYBOX_CONFIG_HUSH
     42        depends BUSYBOX_CONFIG_HUSH
    3743        bool "hush (busybox)"
    3844        help
     
    4753
    4854config BUSYBOX_CONFIG_FEATURE_SH_IS_LASH
    49         select BUSYBOX_CONFIG_LASH
     55        depends BUSYBOX_CONFIG_LASH
    5056        bool "lash (busybox)"
    5157        help
     
    5864
    5965config BUSYBOX_CONFIG_FEATURE_SH_IS_MSH
    60         select BUSYBOX_CONFIG_MSH
     66        depends BUSYBOX_CONFIG_MSH
    6167        bool "msh (busybox)"
    6268        help
     
    7177
    7278choice
    73         prompt "Choose the login shell for admin"
    74         default FWRT_BASEFILES_ADMIN_ASH
     79        prompt "Choose the login shell for the admin user"
     80        default FWRT_BASEFILES_ADMIN_ASH if BUSYBOX_CONFIG_ASH
     81        default FWRT_BASEFILES_ADMIN_MKSH if FWRT_PACKAGE_MKSH
     82        default FWRT_BASEFILES_ADMIN_SH if (!BUSYBOX_CONFIG_ASH && !FWRT_PACKAGE_MKSH)
    7583        help
    7684          Choose a shell which is to be used as the default login
Note: See TracChangeset for help on using the changeset viewer.