File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,36 +23,6 @@ display_help() {
2323 echo
2424}
2525
26- # Check Distro version
27- if [ -f /etc/os-release ]; then
28- OS_DISTRO=$( source /etc/os-release; echo ${PRETTY_NAME%% * } )
29- if [ $OS_DISTRO = " Debian" ]; then
30- isDebian=true
31- # determine if script is being run on bullseye or above
32- read -d . DEBIAN_VERSION < /etc/debian_version
33- if (( $DEBIAN_VERSION > 10 )) ; then
34- echo Detected Debian version of Bullseye or above
35- BULLSEYE=true
36- else
37- echo Older version of Debian detected
38- BULLSEYE=false
39- fi
40- elif [ $OS_DISTRO = " Ubuntu" ]; then
41- isUbuntu=true
42- UBUNTU_VERSION=$( source /etc/os-release; echo ${VERSION_ID%% * } | cut -c1-2)
43- if (( $UBUNTU_VERSION >= 22 )) ; then
44- echo Detcted Ubuntu version of Jammy or above
45- JAMMY=true
46- else
47- echo Older version of Ubuntu detected.
48- JAMMY=false
49- fi
50- else
51- echo " Unsupported OS detected. Recommended Debian 12 or Ubuntu 22.04"
52- exit 1
53- fi
54- fi
55-
5626# check if /etc/rpi-issue exists, if not set the install Args to be false
5727if [ -f /etc/rpi-issue ]
5828then
You can’t perform that action at this time.
0 commit comments