Class problem

Thomas Lange lange at informatik.Uni-Koeln.DE
Wed Aug 3 11:41:10 CEST 2005


>>>>> On Wed, 3 Aug 2005 15:04:26 +1000, "Nicolas Triantafillou" <nick at uow.edu.au> said:

    > classes/50-host-classes lines:
    >     sky-*)
    >         echo "SKY";;

    > # cat classes/SKY
    > BOOT MBR GRUB
    > NETWORK
    > DHCPC
    > XFREE
    > WINDOW_MANAGERS
    > CLUSTER
    > ALL
    > SKY 


In your script the echo command only defined the class SKY, but not
the classes listed in the file SKY! You can use the builtin fai
function catnc (cat no comments, a pipe of cat and grep for removing
comment lines) instead of echo. e.g: catnc SKY

But I also propose to use lowercase names for the file (sky instead of
SKY), to not mix up class names and file names.
-- 
regards Thomas



More information about the linux-fai mailing list