Hi,
I need to match against some hostnames for selecting a profile. I have
sth. like
<rule>
<custom1>
<script>
<![CDATA[
#!/bin/sh
. /var/lib/dhcpcd/dhcpcd-eth0.info
echo -n $HOSTNAME
]]>
</script>
<match>*</match>
exact
</custom1>
<result>
<profile>profiles/part_@custom1@_keep.xml</profile>
<continue config:type="boolean">true</continue>
</result>
</rule>
But now I want to select one profile for 10 certain hostnames. How can
I do that in an elegant way?
What I can do is rewrite the <custom1><script>...</script><match>...</custom1>
part 10 times and AY will redo that script 10 times. But since AY
saves the value of "$custom1" while working on rules.xml (seenin y2log),
it should be possible to reuse the determined value instead of redefining it
over and over again.
However,
<rule>
<custom1>
<match>turing</match>
</custom1>
...
</rule>
redefines $custom1 to "" instead of working on the former value.
Is it possible to re-use the value for custom1 when a former rule has
defined it to some value? If not, I vote for adding this feature!
cu
Frank
--
Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17 Phone: +49 89 2180-4049
80333 Muenchen, Germany Fax: +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org