diff options
author | Bill Nottingham <notting@redhat.com> | 2009-03-17 15:14:26 -0400 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-05-04 16:05:04 +0200 |
commit | 8db45a87941794fc24bdbf063be71d1eb1b9522b (patch) | |
tree | f0f6bc30f4e220879b04e88023fb4fec7cb72c7a /lang.sh | |
parent | 8e73f0feee8fc7cc4a502989e737b5ff752bd33d (diff) | |
download | initscripts-8db45a87941794fc24bdbf063be71d1eb1b9522b.tar initscripts-8db45a87941794fc24bdbf063be71d1eb1b9522b.tar.gz initscripts-8db45a87941794fc24bdbf063be71d1eb1b9522b.tar.bz2 initscripts-8db45a87941794fc24bdbf063be71d1eb1b9522b.tar.xz initscripts-8db45a87941794fc24bdbf063be71d1eb1b9522b.zip |
Add an option for consoletype to always return 0. (#453798, <notting@redhat.com>)
This allows tcsh -e to work, with lang.sh. It's a hack, but there really
isn't a better way to solve it.
Diffstat (limited to 'lang.sh')
-rwxr-xr-x | lang.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -41,7 +41,10 @@ if [ "$sourced" = 1 ]; then [ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS [ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET - consoletype=$(/sbin/consoletype) + consoletype=$CONSOLETYPE + if [ -z "$consoletype" ]; then + consoletype=$(/sbin/consoletype stdout) + fi if [ -n "$CHARSET" ]; then case $CHARSET in |