linux-fai  

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

Thomas Neumann
Thu, 21 Jan 2010 08:56:59 -0800

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