/usr/sbin/ocs-langkbdconf-bterm is in clonezilla 3.5.2-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #!/bin/bash
# Author: Steven Shiau <steven _at_ nchc org tw>
# License: GPL
# This program is used in Debian and run in bterm or jfbterm
#
DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"
. $DRBL_SCRIPT_PATH/sbin/drbl-conf-functions
. /etc/drbl/drbl-ocs.conf
. $DRBL_SCRIPT_PATH/sbin/ocs-functions
#
get_fb_term
[ "$fb_term" = "bterm" -a ! -e "$uni_font" ] && exit 1
#
ask_language_if_supported_with_bterm
[ -z "$ocs_lang" ] && ocs_lang=en_US.UTF-8
# put the language setting so that later program can reuse
if [ -z "$(grep -E "^[[:space:]]*ocs_lang=" /etc/ocs/ocs-live.conf 2>/dev/null)" ]; then
# append it
echo "ocs_lang=$ocs_lang" >> /etc/ocs/ocs-live.conf
else
# modify it
perl -pi -e "s|^[[:space:]]*ocs_lang=.*|ocs_lang=\"$ocs_lang\"|g" /etc/ocs/ocs-live.conf
fi
#
locale_region="$(echo "$ocs_lang" | sed -e "s|\..*||g")"
gen_locale_if_not_found $locale_region $ocs_lang
#
export LANG="$ocs_lang"
drbl-kbdchooser
|