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

Thomas Lange lange at informatik.uni-koeln.de
Thu Jan 21 18:40:35 CET 2010


>>>>> On Thu, 21 Jan 2010 17:56:25 +0100 (CET), "Thomas Neumann" <blacky+fai at fluffbunny.de> said:

    > if ifclass XORG ; then
    >   if <test for ati> ; then
    >     echo XORG_ATI
    >   fi
    > fi
IIRC ifclass does not work when the scripts are executed. Therefore I
used the grep thing.

-- 
regards Thomas


More information about the linux-fai mailing list