summaryrefslogtreecommitdiff
path: root/ben-cyrillic/files/russian.sh
diff options
context:
space:
mode:
authorDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
committerDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
commit9aaeb4623d3ff5746e665bc17914eefd292b7dcd (patch)
tree370db60ffdc2ef840b7d1124d5a392f93bba3c9d /ben-cyrillic/files/russian.sh
downloadqipackages-fork-9aaeb4623d3ff5746e665bc17914eefd292b7dcd.tar.gz
New OpenWrt package for GNU Octave. Experimental/probably still broken.grafted
Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days.
Diffstat (limited to 'ben-cyrillic/files/russian.sh')
-rw-r--r--ben-cyrillic/files/russian.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/ben-cyrillic/files/russian.sh b/ben-cyrillic/files/russian.sh
new file mode 100644
index 0000000..95f81b5
--- /dev/null
+++ b/ben-cyrillic/files/russian.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+setfont2 /usr/share/ben-cyrillic/un-fuzzy-6x10-font_rus.pnm
+loadkeys /usr/share/ben-cyrillic/ben_ru_uni.map
+loadunimap /usr/share/ben-cyrillic/ben_ru_uni.trans
+profile="/etc/profile"
+locale="export LC_ALL=ru_RU.UTF-8"
+grep "$locale" "$profile" > /dev/null 2>&1
+if [ "$?" -eq "1" ]; then
+ #presumably first run, need to set the LC_ALL env
+ echo "$locale" >> "$profile"
+fi