HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: //sbin/setsysfont
#!/bin/sh

PATH=/bin:/usr/bin

if [ -f /etc/sysconfig/i18n ]; then
  . /etc/sysconfig/i18n
fi

case ${LC_ALL:-${LC_CTYPE-$LANG}} in
    *.utf8|*.UTF-8)
         if [ -x /bin/unicode_start ] && /sbin/consoletype fg ; then
		exec unicode_start $SYSFONT $UNIMAP
	 fi
	 ;;
    *)
	if /sbin/consoletype fg ; then
		# no exec, unicode_stop does not set a font
	        unicode_stop
	fi
	;;
esac

if [ -x /bin/setfont ]; then
  if [ -n "$UNIMAP" ]; then
    ARGS="-u $UNIMAP"
  fi
  if [ -n "$SYSFONTACM" ]; then
    if [ ! -f /lib/kbd/consoletrans/${SYSFONTACM}_to_uni.trans ]; then
        SYSFONTACM=$(echo $SYSFONTACM | sed "s|iso0|8859-|g;s|iso|8859-|g")
    fi
    ARGS="$ARGS -m $SYSFONTACM"
  fi
  if [ -n "$SYSFONT" ]; then
    /bin/setfont $SYSFONT $ARGS
#  else
#    /bin/setfont
    echo -ne "\033(K" 2>/dev/null > /proc/$$/fd/0
  fi
fi

exit 0