aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-08-15 04:01:59 +0000
committerDan McGee <dan@archlinux.org>2007-08-15 04:01:59 +0000
commit8649f79e8e0027bd46da8b13f6d8ac5465471c35 (patch)
treeb4d48343f67dd4fd7d9ab7dbf55f18c51f33e969 /rc.sysinit
parente3c06e981af869d6a00ec8cde34bde1e15cb53ad (diff)
downloadinitscripts-8649f79e8e0027bd46da8b13f6d8ac5465471c35.tar.xz
upgpkg: initscripts 2007.08-2
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 3e27a8e..b577707 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -341,7 +341,7 @@ if [ "$(echo $LOCALE | /bin/grep -i utf)" ]; then
/usr/bin/kbd_mode -u
/usr/bin/dumpkeys | /bin/loadkeys --unicode
# the $CONSOLE check helps us avoid this when running scripts from cron
- echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a isatty ]; then echo -ne "\e%G"; fi' >>/etc/profile.d/locale.sh
+ echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then echo -ne "\e%G"; fi' >>/etc/profile.d/locale.sh
stat_done
fi
@@ -355,7 +355,7 @@ if [ "$CONSOLEFONT" != "" ]; then
fi
done
# the $CONSOLE check helps us avoid this when running scripts from cron
- echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a isatty ]; then echo -ne "\e(K"; fi' >>/etc/profile.d/locale.sh
+ echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then echo -ne "\e(K"; fi' >>/etc/profile.d/locale.sh
stat_done
fi
# Adding persistent network/cdrom generated rules