summaryrefslogtreecommitdiff
path: root/init.d/termencoding.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/termencoding.in')
-rw-r--r--init.d/termencoding.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/init.d/termencoding.in b/init.d/termencoding.in
index 734d220..fea27ee 100644
--- a/init.d/termencoding.in
+++ b/init.d/termencoding.in
@@ -31,5 +31,16 @@ start()
printf "\033%s" "$termencoding" >$ttydev$n
n=$(($n + 1))
done
+
+ # Save the encoding for use immediately at boot
+ if [ -w "$RC_LIBEXECDIR" ]; then
+ mkdir -p "$RC_LIBEXECDIR"/console
+ if yesno ${unicode:-${UNICODE}}; then
+ echo "" > "$RC_LIBEXECDIR"/console/unicode
+ else
+ rm -f "$RC_LIBEXECDIR"/console/unicode
+ fi
+ fi
+
eend 0
}