Fixed faiconfig
[fai-configs.git] / class / 50-host-classes
... / ...
CommitLineData
1#! /bin/bash
2. /usr/lib/fai/subroutines
3# assign classes hosts
4
5nogrub=0
6
7# use a list of classes for our demo machine
8case $HOSTNAME in
9 faiserver)
10 echo "FAIBASE DEMO FAISERVER" ;;
11 demohost)
12 echo "FAIBASE DHCPC DEMO" ;;
13 rms)
14 echo "FAIBASE DHCPC DEMO XORG TRISQUEL RMS";;
15 gnomehost)
16 echo "FAIBASE DHCPC DEMO XORG GNOME";;
17 atom*)
18 echo "FAIBASE DHCPC DEMO" ;;
19 bear)
20 echo "FAIBASE DHCPC LVM_XEN_SERVER XEN" ;;
21 puma)
22 echo "FAIBASE DHCPC RAID_XEN_VIRTUAL" ;;
23 freestation*)
24 echo "FAIBASE DHCPC DISKLESS XORG TRISQUEL WORKSTATION"
25 nogrub=1 ;;
26 *)
27 echo "FAIBASE DHCPC DEMO XORG GNOME";;
28esac
29
30if [ $nogrub -eq 0 ]; then
31 (ifclass I386 || ifclass AMD64) && echo GRUB_PC
32fi
33
34exit 0