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