added diskstation
[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 diskstation*)
24 echo "FAIBASE DISKLESS DISKTOOLS SYSADMIN FSF"
25 freestation*)
26 echo "FAIBASE DISKLESS XORG TRISQUEL WORKSTATION FSF"
27 nogrub=1 ;;
28 freetop-x60*)
29 echo "FAIBASE DHCPC XORG TRISQUEL WORKSTATION FSF"
30 ;;
31 *)
32 echo "FAIBASE DHCPC DEMO XORG GNOME";;
33esac
34
35if [ $nogrub -eq 0 ]; then
36 (ifclass I386 || ifclass AMD64) && echo GRUB_PC
37fi
38
39exit 0