OXIESEC PANEL
- Current Dir:
/
/
etc
/
profile.d
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/06/2025 05:57:38 AM
rwxr-xr-x
📄
bash_completion.sh
664 bytes
10/11/2019 11:19:34 PM
rw-r--r--
📄
colorgrep.csh
196 bytes
08/12/2018 07:47:56 AM
rw-r--r--
📄
colorgrep.sh
201 bytes
08/12/2018 07:47:56 AM
rw-r--r--
📄
colorls.csh
1.7 KB
04/01/2023 06:22:20 AM
rw-r--r--
📄
colorls.sh
1.57 KB
04/01/2023 06:22:20 AM
rw-r--r--
📄
colorsysstat.csh
69 bytes
10/15/2023 05:46:46 AM
rw-r--r--
📄
colorsysstat.sh
56 bytes
10/15/2023 05:46:46 AM
rw-r--r--
📄
colorxzgrep.csh
162 bytes
06/14/2022 12:58:42 PM
rw-r--r--
📄
colorxzgrep.sh
183 bytes
06/14/2022 12:58:42 PM
rw-r--r--
📄
colorzgrep.csh
216 bytes
04/20/2022 11:03:05 AM
rw-r--r--
📄
colorzgrep.sh
220 bytes
04/20/2022 11:03:05 AM
rw-r--r--
📄
crontab.sh
175 bytes
03/16/2023 06:37:24 PM
rw-r--r--
📄
csh.local
80 bytes
05/15/2023 02:46:40 PM
rw-r--r--
📄
debuginfod.csh
674 bytes
04/06/2024 01:39:26 PM
rw-r--r--
📄
debuginfod.sh
596 bytes
04/06/2024 01:39:26 PM
rw-r--r--
📄
gawk.csh
1.08 KB
12/14/2017 05:53:45 PM
rw-r--r--
📄
gawk.sh
757 bytes
12/14/2017 05:53:45 PM
rw-r--r--
📄
golang.sh
138 bytes
08/12/2024 06:24:55 PM
rw-r--r--
📄
lang.csh
2.43 KB
05/15/2023 02:46:40 PM
rw-r--r--
📄
lang.sh
2.26 KB
05/15/2023 02:46:40 PM
rw-r--r--
📄
less.csh
500 bytes
07/02/2024 07:57:10 PM
rw-r--r--
📄
less.sh
253 bytes
07/02/2024 07:57:10 PM
rw-r--r--
📄
mc.csh
49 bytes
10/18/2019 08:38:39 PM
rw-r--r--
📄
mc.sh
153 bytes
10/18/2019 08:38:39 PM
rw-r--r--
📄
modules.csh
105 bytes
10/14/2023 06:46:13 PM
rw-r--r--
📄
modules.sh
448 bytes
10/14/2023 06:46:13 PM
rw-r--r--
📄
scl-init.csh
284 bytes
08/25/2017 08:23:02 AM
rw-r--r--
📄
scl-init.sh
637 bytes
08/25/2017 08:23:02 AM
rw-r--r--
📄
sh.local
81 bytes
05/15/2023 02:46:40 PM
rw-r--r--
📄
vim.csh
106 bytes
08/02/2022 04:57:00 PM
rw-r--r--
📄
vim.sh
248 bytes
08/02/2022 04:57:00 PM
rw-r--r--
📄
which2.csh
120 bytes
10/15/2023 02:13:47 AM
rw-r--r--
📄
which2.sh
540 bytes
10/15/2023 02:13:47 AM
rw-r--r--
Editing: lang.sh
Close
# /etc/profile.d/lang.sh - exports environment variables, and provides fallback # for CJK languages that can't be displayed in console. if [ -n "${LANG}" ]; then LANG_backup="${LANG}" fi for config in /etc/locale.conf "${HOME}/.i18n"; do # NOTE: We are using eval & sed here to avoid invoking of any commands & functions from those files. if [ -f "${config}" ]; then eval $(/usr/bin/sed -r -e 's/^[[:blank:]]*([[:upper:]_]+)=([[:print:][:digit:]\._-]+|"[[:print:][:digit:]\._-]+")/export \1=\2/;t;d' ${config}) fi done if [ -n "${LANG_backup}" ]; then LANG="${LANG_backup}" fi unset LANG_backup config # ---------------------------------------------- # The LC_ALL is not supposed to be set in /etc/locale.conf according to 'man 5 locale.conf'. # If it is set, then we we expect it is user's explicit override (most likely from ~/.i18n file). # See 'man 7 locale' for more info about LC_ALL. if [ -n "${LC_ALL}" ]; then if [ "${LC_ALL}" != "${LANG}" ]; then export LC_ALL else unset LC_ALL fi fi # The ${LANG} manipulation is necessary only in virtual terminal (a.k.a. console - /dev/tty*): if [ -n "${LANG}" ] && [ "${TERM}" = 'linux' ] && /usr/bin/tty | /usr/bin/grep --quiet -e '/dev/tty'; then if /usr/bin/grep --quiet -E -i -e '^.+\.utf-?8$' <<< "${LANG}"; then case ${LANG} in ja*) LANG=en_US.UTF-8 ;; ko*) LANG=en_US.UTF-8 ;; si*) LANG=en_US.UTF-8 ;; zh*) LANG=en_US.UTF-8 ;; ar*) LANG=en_US.UTF-8 ;; fa*) LANG=en_US.UTF-8 ;; he*) LANG=en_US.UTF-8 ;; en_IN*) true ;; *_IN*) LANG=en_US.UTF-8 ;; esac else case ${LANG} in ja*) LANG=en_US ;; ko*) LANG=en_US ;; si*) LANG=en_US ;; zh*) LANG=en_US ;; ar*) LANG=en_US ;; fa*) LANG=en_US ;; he*) LANG=en_US ;; en_IN*) true ;; *_IN*) LANG=en_US ;; esac fi # NOTE: We are not exporting the ${LANG} here again on purpose. # If user starts GUI session from console manually, then # the previously set LANG should be okay to use. fi