add support for the Debian derivative TurnKey Linux

This commit is contained in:
Dafydd Jones 2019-02-02 02:17:58 +00:00
parent 5c219ed0fa
commit 431e272036
No known key found for this signature in database
GPG key ID: 91848C9DE80C413A

View file

@ -1431,7 +1431,7 @@ __debian_derivatives_translation() {
# If the file does not exist, return
[ ! -f /etc/os-release ] && return
DEBIAN_DERIVATIVES="(cumulus_.+|devuan|kali|linuxmint|raspbian|bunsenlabs)"
DEBIAN_DERIVATIVES="(cumulus_.+|devuan|kali|linuxmint|raspbian|bunsenlabs|turnkey)"
# Mappings
cumulus_2_debian_base="7.0"
cumulus_3_debian_base="8.0"
@ -1442,6 +1442,7 @@ __debian_derivatives_translation() {
raspbian_8_debian_base="8.0"
raspbian_9_debian_base="9.0"
bunsenlabs_9_debian_base="9.0"
turnkey_9_debian_base="9.0"
# Translate Debian derivatives to their base Debian version
match=$(echo "$DISTRO_NAME_L" | grep -E ${DEBIAN_DERIVATIVES})
@ -1472,6 +1473,10 @@ __debian_derivatives_translation() {
_major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g')
_debian_derivative="bunsenlabs"
;;
turnkey)
_major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g')
_debian_derivative="bunsenlabs"
;;
esac
_debian_version=$(eval echo "\$${_debian_derivative}_${_major}_debian_base" 2>/dev/null)