#! /bin/sh #---------------------------------------------------------------------------- # /etc/init.d/environment - init script for environment # # Creation: 2005-04-12 max # Last Update: $Id$ # # Copyright (c) 2001-2013 the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- # include eislib . /var/install/include/eislib . /etc/config.d/environment ### main case ${1} in restart) echo echo unicode_lc_ctype='no' unicode_k_mode='no' if `echo "${LC_CTYPE}" | grep -q 'utf8'` then unicode_lc_ctype='yes' fi kbd_mode | grep -q 'UTF-8' if [ $? -eq 0 ] then unicode_k_mode='yes' fi #echo "unicode_lc_ctype is $unicode_lc_ctype , unicode_k_mode is $unicode_k_mode ." if [ "${unicode_lc_ctype}" != "${unicode_k_mode}" ] then mecho --warn "Please reboot for console changes." else mecho --info "Please login again to take changes effect." fi echo ;; *) echo "Usage: ${0} {restart}" ;; esac