Thanks a bunch. That was the problem. I guess I didn't pick up that subtle but important detail from the example. On Wed, Oct 7, 2009 at 9:21 AM, Uwe Gansert <ug@suse.de> wrote:
on Wednesday 07 October 2009 Jeromy Smith wrote:
<script> MANUFACTURER=`dmidecode -s system-manufacturer` PRODUCT=`dmidecode -s system-product-name` if [ "`echo $MANUFACTURER | grep -i \"Dell\"`" != "" ]; then if [ "`echo $PRODUCT | grep -i \"M6300\"`" != "" ]; then echo "dellm6300.xml" elif [ "`echo $PRODUCT | grep -i \"M6400\"`" != "" ]; then echo "dellm6400.xml" elif [ "`echo $PRODUCT | grep -i \"390\"`" != "" ]; then echo "dellt5400.xml" elif [ "`echo $PRODUCT | grep -i \"T5400\"`" != "" ]; then echo "dellt5400.xml" elif [ "`echo $PRODUCT | grep -i \"T5500\"`" != "" ]; then echo "dellt5400.xml" elif [ "`echo $PRODUCT | grep -i \"2950\"`" != "" ]; then echo "ts-8cpu.xml" elif [ "`echo $PRODUCT | grep -i \"R710\"`" != "" ]; then echo "ts-8cpu.xml" fi; elif [ "`echo $PRODUCT | grep -i \"X6DVA\"`" != "" ]; then echo "tsmini.xml" elif [ "`echo $PRODUCT | grep -i \"X7DVL\"`" != "" ]; then echo "tsmini.xml" elif [ "`echo $PRODUCT | grep -i \"X7DAL\"`" != "" ]; then echo "systel.xml" else echo "other.xml"
use "echo -n" everywhere to avoid the \n in the filename
-- ciao, Uwe Gansert
Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org