Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# A simple test case created during QA meeting for testing keyboard layout we can do something similar for other locale as well i suppose.. Sample method using is-latin1 # Add this to a kickstart file 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 #!/bin/bash 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" #Can of course take some other action here mail the output from file fi if [ "$lshal" == "1" ] then echo "lshal output OK " else echo "lshal output FAIL" # Can of course take some other action here mail the output from file fi exit 0
This paste will be private.
From the Design Piracy series on my blog: