Line 0
Link Here
|
|
|
1 |
#!@SBINDIR@/openrc-run |
2 |
# Copyright (c) 2018 Sony Interactive Entertainment, Inc. |
3 |
# |
4 |
# This file is part of OpenRC. It is subject to the license terms in |
5 |
# the LICENSE file found in the top-level directory of this |
6 |
# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE |
7 |
# This file may not be copied, modified, propagated, or distributed |
8 |
# except according to the terms contained in the LICENSE file. |
9 |
|
10 |
description="Configures terminal encoding." |
11 |
|
12 |
ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}} |
13 |
: ${unicode:=${UNICODE}} |
14 |
|
15 |
depend() |
16 |
{ |
17 |
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu |
18 |
use root |
19 |
after bootmisc clock termencoding |
20 |
} |
21 |
|
22 |
start() |
23 |
{ |
24 |
ebegin "Saving terminal encoding" |
25 |
# Save the encoding for use immediately at boot |
26 |
if checkpath -W "$RC_LIBEXECDIR"; then |
27 |
mkdir -p "$RC_LIBEXECDIR"/console |
28 |
if yesno ${unicode:-${UNICODE}}; then |
29 |
echo "" > "$RC_LIBEXECDIR"/console/unicode |
30 |
else |
31 |
rm -f "$RC_LIBEXECDIR"/console/unicode |
32 |
fi |
33 |
fi |
34 |
eend 0 |
35 |
} |