aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-08-17 21:00:16 +0200
committerOlav Vitters <olav@vitters.nl>2020-08-17 21:00:16 +0200
commitf9c418a4fa294d62eb333a6d301df09ba68dc243 (patch)
tree1f60aac6e1992e6a6ec8ebf212456badf4707f97
parentc53dacaf7805fffa86c902a943df0fbf9c58c4f1 (diff)
downloadinitscripts-f9c418a4fa294d62eb333a6d301df09ba68dc243.tar
initscripts-f9c418a4fa294d62eb333a6d301df09ba68dc243.tar.gz
initscripts-f9c418a4fa294d62eb333a6d301df09ba68dc243.tar.bz2
initscripts-f9c418a4fa294d62eb333a6d301df09ba68dc243.tar.xz
initscripts-f9c418a4fa294d62eb333a6d301df09ba68dc243.zip
lang.csh: silence consoletype warnings
-rwxr-xr-xmageia/etc/profile.d/lang.csh6
1 files changed, 3 insertions, 3 deletions
diff --git a/mageia/etc/profile.d/lang.csh b/mageia/etc/profile.d/lang.csh
index 4978981c..f53290e9 100755
--- a/mageia/etc/profile.d/lang.csh
+++ b/mageia/etc/profile.d/lang.csh
@@ -18,7 +18,7 @@ if ($LC_SOURCED == 1) then
endif
endif
- set consoletype=`/sbin/consoletype stdout`
+ set consoletype=`/sbin/consoletype stdout 2> /dev/null`
if ($?CHARSET) then
switch ($CHARSET)
@@ -80,7 +80,7 @@ if ($LC_SOURCED == 1) then
breaksw
endsw
if ( -x /bin/unicode_start ) then
- if { /sbin/consoletype fg } then
+ if { /sbin/consoletype fg 2> /dev/null } then
if ( $?SYSFONT ) then
if ( $?SYSFONTACM ) then
unicode_start $SYSFONT $SYSFONTACM
@@ -113,7 +113,7 @@ if ($LC_SOURCED == 1) then
breaksw
endsw
if ( -x /bin/unicode_stop ) then
- if { /sbin/consoletype fg } then
+ if { /sbin/consoletype fg 2> /dev/null } then
/bin/unicode_stop
endif
endif