mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Detect unsupported Raspbian GNU/Linux 12 (bookworm) 32-bit
This commit is contained in:
parent
dc65af9045
commit
a26a3b665e
@ -136,6 +136,17 @@ function _get_linux_distro() {
|
|||||||
else
|
else
|
||||||
_install_status 1 "Unsupported Linux distribution"
|
_install_status 1 "Unsupported Linux distribution"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ${OS,,} = "raspbian" ] && [[ ${RELEASE} =~ ^(12) ]]; then
|
||||||
|
echo "Detected OS: ${DESC} 32-bit"
|
||||||
|
echo "This OS introduces breaking changes to dhcpcd and is unsupported."
|
||||||
|
echo "If Raspberry Pi OS Lite (32-bit) is wanted, downgrade to bullseye."
|
||||||
|
echo "Note: Raspbian GNU/Linux 12 (bookworm) 64-bit is fully supported."
|
||||||
|
echo "See: https://docs.raspap.com/#compatible-operating-systems"
|
||||||
|
echo "The installer cannot continue."
|
||||||
|
_install_status 1 "Unsupported Linux distribution"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Sets php package option based on Linux version, abort if unsupported distro
|
# Sets php package option based on Linux version, abort if unsupported distro
|
||||||
@ -229,6 +240,7 @@ function _install_dependencies() {
|
|||||||
if [ ${OS,,} = "debian" ] || [ ${OS,,} = "ubuntu" ]; then
|
if [ ${OS,,} = "debian" ] || [ ${OS,,} = "ubuntu" ]; then
|
||||||
dhcpcd_package="dhcpcd5"
|
dhcpcd_package="dhcpcd5"
|
||||||
iw_package="iw"
|
iw_package="iw"
|
||||||
|
echo "${dhcpcd_package} and ${iw_package} will be installed from the main deb sources list"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set dconf-set-selections
|
# Set dconf-set-selections
|
||||||
|
Loading…
x
Reference in New Issue
Block a user