Mailinglist Archive: opensuse-autoinstall (54 mails)

< Previous Next >
Re: [opensuse-autoinstall] rules.xml on DVD install
  • From: Jeromy Smith <jeromy@xxxxxxxx>
  • Date: Wed, 7 Oct 2009 14:12:46 -0500
  • Message-id: <500e16a60910071212k1a4059d8le59293c6e8fd8012@xxxxxxxxxxxxxx>
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@xxxxxxx> 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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx


--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >