#!/bin/bash

# Switch console to correct map table. This file is sourced

if [ -n "$SYSFONTACM" ]; then
    case $SYSFONTACM in
	iso01*|iso02*|iso15*|koi*|latin2-ucw*)
	    if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then
		    echo -n -e '\033(K' 2>/dev/null > /proc/$$/fd/0
	    fi
	    ;;
    esac
fi
