#!/bin/bash export TERM=linux # Make fonts look right under RHEL # A few notes here: # Yes, "setfont" followed by "setfont -m -u" is needed. Why? I do not know. # This operation must be done in this piece of code, not after "su - daisy", as, # daisy does not have permission to change these settings (apparently, daisy does not # own the virtual console.) grep "Red Hat Enterprise Linux" /etc/redhat-release > /dev/null 2> /dev/null if [ $? == 0 ] ; then unicode_stop setfont setfont -u cp850 -m cp850 #fi su - daisy -c "/d/server/$1" exit 0