diff options
author | Bill Nottingham <notting@redhat.com> | 2001-02-06 17:48:42 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-02-06 17:48:42 +0000 |
commit | 664444c9d9fe544415904830ac95d30bed9d27b6 (patch) | |
tree | 5be635d04d25432a5c47863ef59ee090ec26f556 /rc.d/init.d/functions | |
parent | 548bfb4b86d56f466b10c289d2d1f229494538e6 (diff) | |
download | initscripts-664444c9d9fe544415904830ac95d30bed9d27b6.tar initscripts-664444c9d9fe544415904830ac95d30bed9d27b6.tar.gz initscripts-664444c9d9fe544415904830ac95d30bed9d27b6.tar.bz2 initscripts-664444c9d9fe544415904830ac95d30bed9d27b6.tar.xz initscripts-664444c9d9fe544415904830ac95d30bed9d27b6.zip |
don't display japanese unless we're on a pty
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-x | rc.d/init.d/functions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 548b7f0c..65c10ddf 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -22,7 +22,11 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" if [ -f /etc/sysconfig/i18n ] ; then . /etc/sysconfig/i18n - export LANG + if [ "$LANG" = "ja_JP.eucJP" -a "`/sbin/consoletype`" != "pty" ]; then + unset LANG + else + export LANG + fi fi # Read in our configuration |