3 # assign classes to hosts based on their hostname
5 # do not use this if a menu will be presented
6 [ "$flag_menu" ] && exit 0
8 # use a list of classes for our demo machine
11 echo "FAIBASE DEBIAN DESKTOP STABLE" ;;
13 echo "FAIBASE DEBIAN DESKTOP STABLE PARTITION_PROMPT" ;;
15 echo "FAIBASE DEBIAN DESKTOP STABLE PARTITION_PROMPT" ;;
17 echo "FAIBASE DEBIAN DESKTOP STABLE PARTITION_PROMPT" ;;
19 # echo "FAIBASE DEBIAN DEMO FAISERVER" ;;
21 # echo "FAIBASE DEBIAN DEMO XORG XFCE LVM";;
23 # echo "FAIBASE DEBIAN DEMO XORG GNOME";;
25 # echo "FAIBASE CENTOS" # you may want to add class XORG here
26 # ifclass I386 && echo CENTOS6_32 # AFAIK there's no 32bit C7
27 # ifclass AMD64 && echo CENTOS7_64
28 # exit 0 ;; # CentOS does not use the GRUB class
30 # # Scientific Linux Cern, is very similar to CentOS. SLC should alsways use the class CENTOS
31 # echo "FAIBASE CENTOS SLC" # you may want to add class XORG here
32 # ifclass I386 && echo SLC7_32
33 # ifclass AMD64 && echo SLC7_64
34 # exit 0 ;; # CentOS/SLC does not use the GRUB class
36 echo "FAIBASE DEBIAN DESKTOP" ;;
39 if grep ^
52:54:00: /sys
/class
/net
/eth
0/address
&>/dev
/null
; then
40 # if our eth0 mac is in the kvm range, we are a vm.