How to conditionally define a class? (ex. Xorg configuration)

Thomas Neumann blacky+fai at fluffbunny.de
Thu Jan 21 17:56:25 CET 2010


hiya

> Now the question is: Instead of running apt-get as above, how can I
> define the class XORG_ATI dynamically at installation time (if and only
> if the XORG class is defined!) in order to install the software packages
> listed in var/lib/fai/config/package_config/XORG_ATI ?

if ifclass XORG ; then
  if <test for ati> ; then
    echo XORG_ATI
  fi
fi

doesn't work?

I'm using something to that effect quite often in class/<...>

tschüß
thomas



More information about the linux-fai mailing list