mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 20:03:53 +08:00
Added unofficial support for Ubuntu 22.10 in ubuntu_setup.sh (#26828)
* Added unofficial support for Ubuntu 22.10 in ubuntu_setup.sh
Added a conditional to check if $UBUNTU_CODENAME is equal to "kinetic" in ubuntu_setup.sh. Installs the same packages as Ubuntu 22.04 LTS Jammy Jellyfish.
* Attempt #2 at adding unofficial support for Ubuntu 22.10 in ubuntu_setup.sh
Still checks to see if $UBUNTU_CODENAME is equal to "kinetic" I just fixed some errors that were appearing beforehand
* Update tools/ubuntu_setup.sh
* Update tools/ubuntu_setup.sh
* Update tools/ubuntu_setup.sh
* Update tools/ubuntu_setup.sh
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 777dc9dcd2
This commit is contained in:
@@ -82,7 +82,7 @@ function install_ubuntu_common_requirements() {
|
||||
}
|
||||
|
||||
# Install Ubuntu 22.04 LTS packages
|
||||
function install_ubuntu_jammy_requirements() {
|
||||
function install_ubuntu_lts_latest_requirements() {
|
||||
install_ubuntu_common_requirements
|
||||
|
||||
$SUDO apt-get install -y --no-install-recommends \
|
||||
@@ -108,7 +108,10 @@ if [ -f "/etc/os-release" ]; then
|
||||
source /etc/os-release
|
||||
case "$VERSION_CODENAME" in
|
||||
"jammy")
|
||||
install_ubuntu_jammy_requirements
|
||||
install_ubuntu_lts_latest_requirements
|
||||
;;
|
||||
"kinetic")
|
||||
install_ubuntu_lts_latest_requirements
|
||||
;;
|
||||
"focal")
|
||||
install_ubuntu_focal_requirements
|
||||
@@ -120,8 +123,8 @@ if [ -f "/etc/os-release" ]; then
|
||||
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
||||
exit 1
|
||||
fi
|
||||
if [ "$UBUNTU_CODENAME" = "jammy" ]; then
|
||||
install_ubuntu_jammy_requirements
|
||||
if [ "$UBUNTU_CODENAME" = "jammy" ] || [ "$UBUNTU_CODENAME" = "kinetic" ]; then
|
||||
install_ubuntu_lts_latest_requirements
|
||||
else
|
||||
install_ubuntu_focal_requirements
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user