Sample method using is-latin1
keyboard is-latin1
Sample script to use for the actual test, the script gets created during the install ( echo script lines to file in ks file chmod ) and run post-install
keyboard=`grep -c "is-latin1" /etc/sysconfig/keyboard `
lshal=`/usr/bin/lshal | grep "layout" | grep -c "is" `
if [ "$keyboard" == "1" ]
then
echo "/etc/sysconfig/keyboard OK "
else
echo "/etc/sysconfig/keyboard FAIL"
fi
if [ "$lshal" == "1" ]
then
echo "lshal output OK "
else
echo "lshal output FAIL"
fi
exit 0