I don't think that would work because at the time it ran the current class would be "GRUB" since it's running out of GRUB/20-fix_grub_menulst, so the logic would always return false for that if statement.<br>
<br>-b<br><br><br><br><div class="gmail_quote">On Thu, Dec 30, 2010 at 7:04 AM, Toomas Tamm <span dir="ltr"><<a href="mailto:tt-fai@kky.ttu.ee">tt-fai@kky.ttu.ee</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Wed, Dec 29, 2010 at 03:32:08PM -0500, Allison, Brad wrote:<br>
> Since I couldn't find a nicer way around it, I added the following:<br>
><br>
> 1- In my class scripts I have a script that touches /target/etc/class_name<br>
><br>
> 2- I added a GRUB/20-fix_grub_menulst that looks for my<br>
> /target/etc/class_name and if it exists then it copies over my menu.lst.<br>
<br>
</div>How about<br>
<br>
if ifclass SPECIAL_CLIENT ; then<br>
(do the special stuff)<br>
fi<br>
<br>
inside the GRUB/20-fix_grub_menulst ?<br>
<br>
Then the script would run on all hosts, but performs no action unless<br>
the client belongs to the SPECIAL_CLIENT class.<br>
<font color="#888888"><br>
Toomas Tamm<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Brad Allison<br>Senior Systems Administrator<br>AlertSite.com<br>954-312-0188 x214<br><br>