В login помещена конструкция для трансляции utf-8 в koi8-r,

для xmessage


git-svn-id: http://svn.calculate.ru/calculate2/calculate-client/trunk@1547 c91db197-33c1-4113-bf15-f8a5c547ca64
develop
mhiretskiy 15 years ago
parent 90b643f2db
commit e4867d92bb

@ -1,5 +1,11 @@
#! /bin/sh
xmes() {
echo "$1:
$2" | iconv -f utf8 -t koi8-r - | xargs xmessage -buttons OK:0 -default OK
}
env-update
source /etc/profile
@ -20,8 +26,7 @@ then
if [ "$?" -gt "0" ];
then
echo $ERRORLOG >> $FILE_LOG
xmessage -buttons OK:0 -default OK "cl-sync:
$ERRORLOG"
xmes cl-sync "$ERRORLOG"
exit 1
fi
fi
@ -36,11 +41,9 @@ then
ERRORLOG2=`/usr/bin/cl-sync --color=never --logout --nosync $USER`
if [ "$?" -gt "0" ];
then
xmessage -buttons OK:0 -default OK "cl-sync:
$ERRORLOG2"
xmes cl-sync "$ERRORLOG2"
fi
xmessage -buttons OK:0 -default OK "cl-createhome:
$ERRORLOG"
xmes cl-createhome "$ERRORLOG"
exit 1
fi
fi

Loading…
Cancel
Save