Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > 75151e3f95cbab4160cd728df8b1cbe9 > scriptlet

console-tools-0.2.3-1mdk.i586.rpm

PREUN

/bin/sh
if [ $1 = 0 ]; then
   /sbin/chkconfig --del keytable
fi

POSTIN

/bin/sh
/sbin/ldconfig
/sbin/chkconfig --add keytable
if [ -f /etc/sysconfig/keyboard ] ; then
    . /etc/sysconfig/keyboard
    if [ -n "$KEYTABLE" ] ; then
        KT=`echo $KEYTABLE | sed -e "s/.*\///g" | sed -e "s/\..*//g"`
        echo "KEYTABLE=$KT" > /etc/sysconfig/keyboard
    fi
fi
if [ -f /etc/sysconfig/i18n ] ; then
   . /etc/sysconfig/i18n
   if [ -d /etc/sysconfig/console ] ; then
      if [ -n "$SYSFONT" ]; then
         cp -f /usr/lib/kbd/consolefonts/$SYSFONT* /etc/sysconfig/console
      fi
      if [ -n "$UNIMAP" ]; then
         cp -f /usr/lib/kbd/consoletrans/$UNIMAP* /etc/sysconfig/console
      fi
      if [ -n "$SYSFONTACM" ]; then 
         cp -f /usr/lib/kbd/consoletrans/$SYSFONTACM* /etc/sysconfig/console
      fi
   fi
fi