From 89c0510b24dd4382fde8f98f6f52935a1d680746 Mon Sep 17 00:00:00 2001 From: Kevin Quinn Date: Fri, 28 Dec 2018 23:11:08 -0500 Subject: [PATCH] Add support for bunsenlabs debian derivative --- bootstrap-salt.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 7a84c15..720d886 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -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)" + DEBIAN_DERIVATIVES="(cumulus_.+|devuan|kali|linuxmint|raspbian|bunsenlabs)" # Mappings cumulus_2_debian_base="7.0" cumulus_3_debian_base="8.0" @@ -1441,6 +1441,7 @@ __debian_derivatives_translation() { linuxmint_1_debian_base="8.0" raspbian_8_debian_base="8.0" raspbian_9_debian_base="9.0" + bunsenlabs_9_debian_base="9.0" # Translate Debian derivatives to their base Debian version match=$(echo "$DISTRO_NAME_L" | grep -E ${DEBIAN_DERIVATIVES}) @@ -1467,6 +1468,10 @@ __debian_derivatives_translation() { _major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g') _debian_derivative="raspbian" ;; + bunsenlabs) + _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)