Changeset 3053

Show
Ignore:
Timestamp:
07/01/07 04:05:40 (1 year ago)
Author:
tg
Message:

• add zsh to /etc/shells, forgotten by wbx@
• remove lash, hush and msh from the choice for /bin/sh – we require

either ash or mksh there for FreeWRT 1.1, other shells are not
compatible enough

• enable the use of zsh as login shell (alongside with ash, hash, msh,

lush, bash, mksh, /bin/sh)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/Config.in.shell

    r2910 r3053  
    3838          good for interactive and especially script use. Some sh/ksh/pdksh 
    3939          compatibility kludges have been removed. 
    40  
    41 config BUSYBOX_CONFIG_FEATURE_SH_IS_HUSH 
    42         depends BUSYBOX_CONFIG_HUSH 
    43         bool "hush (busybox)" 
    44         help 
    45           hush is a very small shell (just 18k) and it has fairly complete 
    46           Bourne shell grammar.  It even handles all the normal flow control 
    47           options such as if/then/elif/else/fi, for/in/do/done, while loops, 
    48           etc. 
    49  
    50           It does not handle case/esac, select, function, here documents ( << 
    51           word ), arithmetic expansion, aliases, brace expansion, tilde 
    52           expansion, &> and >& redirection of stdout+stderr, etc. 
    53  
    54 config BUSYBOX_CONFIG_FEATURE_SH_IS_LASH 
    55         depends BUSYBOX_CONFIG_LASH 
    56         bool "lash (busybox)" 
    57         help 
    58           lash is the very smallest shell (adds just 10k) and it is quite 
    59           usable as a command prompt, but it is not suitable for any but the 
    60           most trivial scripting (such as an initrd that calls insmod a few 
    61           times) since it does not understand any Bourne shell grammar.  It 
    62           does handle pipes, redirects, and job control though.  Adding in 
    63           command editing makes it a very nice lightweight command prompt. 
    64  
    65 config BUSYBOX_CONFIG_FEATURE_SH_IS_MSH 
    66         depends BUSYBOX_CONFIG_MSH 
    67         bool "msh (busybox)" 
    68         help 
    69           The minix shell (adds just 30k) is quite complete and handles things 
    70           like for/do/done, case/esac and all the things you expect a Bourne 
    71           shell to do.  It is not always pedantically correct about Bourne 
    72           shell grammar (try running the shell testscript "tests/sh.testcases" 
    73           on it and compare vs bash) but for most things it works quite well. 
    74           It also uses only vfork, so it can be used on uClinux systems. 
    7540 
    7641endchoice 
     
    11681          be selected as /bin/sh. 
    11782 
     83config FWRT_BASEFILES_ADMIN_ZSH 
     84        depends FWRT_PACKAGE_ZSH 
     85        bool "zsh" 
     86        help 
     87          zsh is a powerful, bloated not-quite bourne (and even less 
     88          korn) compatible shell with rich features for interactive 
     89          uses. It cannot be selected as /bin/sh but as login shell. 
     90 
    11891config FWRT_BASEFILES_ADMIN_HUSH 
    11992        depends BUSYBOX_CONFIG_HUSH 
  • trunk/freewrt/package/base-files/Makefile

    r2927 r3053  
    4141ifeq (${FWRT_BASEFILES_ADMIN_BASH},y) 
    4242ADMIN_SHELL:=           /bin/bash 
     43endif 
     44ifeq (${FWRT_BASEFILES_ADMIN_ZSH},y) 
     45ADMIN_SHELL:=           /bin/zsh 
    4346endif 
    4447 
     
    8689        echo /bin/bash >>${IDIR_BASE_FILES}/etc/shells 
    8790endif 
     91ifneq (${FWRT_PACKAGE_ZSH},) 
     92        echo /bin/zsh >>${IDIR_BASE_FILES}/etc/shells 
     93endif 
    8894ifneq (${FWRT_PACKAGE_MKSH_AS_BINASH},) 
    8995        echo /bin/ash >>${IDIR_BASE_FILES}/etc/shells