Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,6 @@ display_help() {
echo
}

# Check Distro version
if [ -f /etc/os-release ]; then
OS_DISTRO=$(source /etc/os-release; echo ${PRETTY_NAME%% *})
if [ $OS_DISTRO = "Debian" ]; then
isDebian=true
#determine if script is being run on bullseye or above
read -d . DEBIAN_VERSION < /etc/debian_version
if (( $DEBIAN_VERSION > 10 )); then
echo Detected Debian version of Bullseye or above
BULLSEYE=true
else
echo Older version of Debian detected
BULLSEYE=false
fi
elif [ $OS_DISTRO = "Ubuntu" ]; then
isUbuntu=true
UBUNTU_VERSION=$(source /etc/os-release; echo ${VERSION_ID%% *} | cut -c1-2)
if (( $UBUNTU_VERSION >= 22 )); then
echo Detcted Ubuntu version of Jammy or above
JAMMY=true
else
echo Older version of Ubuntu detected.
JAMMY=false
fi
else
echo "Unsupported OS detected. Recommended Debian 12 or Ubuntu 22.04"
exit 1
fi
fi

#check if /etc/rpi-issue exists, if not set the install Args to be false
if [ -f /etc/rpi-issue ]
then
Expand Down