if [[ -e /a/bin/fai/fai-wrapper ]]; then
source /a/bin/distro-functions/src/identify-distros
- if isdebian; then
- echo "DEBIAN"
- tmp=$(debian-codename)
- echo ${tmp^^}
- # nonfree repo is not going away any time soon due to
- # gcc-doc being in nonfree
- echo ${tmp^^}_NONFREE
+ if isdeb; then
+ codename=$(debian-codename)
+ echo ${codename^^}
+ distro=$(distro-name)
+ case $distro in
+ debian)
+ echo ${distro^^}
+ # nonfree repo is not going away any time soon due to
+ # gcc-doc being in nonfree
+ echo ${codename^^}_NONFREE
+ ;;
+ trisquel)
+ # easier to stay with fai example config if we just call it ubuntu
+ echo UBUNTU
+ ;;
+ esac
fi
case $HOSTNAME in
li|lj) echo "LINODE" ;;
- bk) echo "NOCRYPT" ;;
+ bk|je) echo "NOCRYPT" ;;
esac
fi