Mailinglist Archive: opensuse-autoinstall (46 mails)

< Previous Next >
[opensuse-autoinstall] Rules and HasPCMCIA
  • From: Rasmus Borup Hansen <rbh@xxxxxxxxxx>
  • Date: Fri, 07 Dec 2007 14:54:56 +0100
  • Message-id: <475950B0.2090105@xxxxxxxxxx>
With 10.1 and earlier I used the "haspcmcia" attribute to distinguish
between laptops and desktops in my rules.xml file. With 10.3, however,
it appears that haspcmcia always has the value 0. I don't know about
10.2, since I skipped that version. Has anyone else run into this problem?

I changed my rules to use the following instead, so it's not a big deal
for me:

<rule>
<custom1>
<script>
if lspci | grep -qi wireless ; then
echo -n laptop
else
echo -n desktop
fi
</script>
<match>*</match>
<match_type>exact</match_type>
</custom1>
<result>
<profile>default_@custom1@.xml</profile>
<continue config:type="boolean">true</continue>
</result>
</rule>

Best regards,

Rasmus

--
Rasmus Borup Hansen, IT manager University of Copenhagen
Email: rbh@xxxxxxxxxx Department of Mathematical Sciences
Phone: +45 353 20759 Universitetsparken 5
Cell phone: +45 287 50759 DK-2100 Ø
Office: 04.2.08 Denmark

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

< Previous Next >
This Thread
  • No further messages