mirror of
https://github.com/stornic56/debianito-post-install.git
synced 2026-07-16 05:49:49 +00:00
add Debian 11 support
- Created dedicated modules/bullseye/` folder for legacy isolation (Debian 11 support). - Implemented 4-block inclusive PCI range detection for Nvidia Kepler/Fermi to prevent black screens. - Centralized system time verification checking against year 2026 before APT execution. - Cleaned and purged modern package lists for the Bullseye extra software module. - Updated main menu with conditional sourcing and fixed Option 7 (Gaming Lite) for Bullseye. - Updated README.md with explicit TUI navigation instructions and full repository directory tree mapping.
This commit is contained in:
@@ -9,13 +9,14 @@ is_nvidia_kepler() {
|
||||
local dev_int
|
||||
dev_int=$((16#${dev_id,,}))
|
||||
|
||||
# Known Kepler device ID ranges (GKxxx)
|
||||
if [ "$dev_int" -ge $((16#0FC0)) ] && [ "$dev_int" -le $((16#0FCF)) ]; then echo true; return; fi
|
||||
if [ "$dev_int" -ge $((16#1180)) ] && [ "$dev_int" -le $((16#118F)) ]; then echo true; return; fi
|
||||
if [ "$dev_int" -ge $((16#11C0)) ] && [ "$dev_int" -le $((16#11CF)) ]; then echo true; return; fi
|
||||
if [ "$dev_int" -ge $((16#0FE0)) ] && [ "$dev_int" -le $((16#0FEF)) ]; then echo true; return; fi
|
||||
if [ "$dev_int" -ge $((16#1280)) ] && [ "$dev_int" -le $((16#129F)) ]; then echo true; return; fi
|
||||
if [ "$dev_int" -ge $((16#0EB0)) ] && [ "$dev_int" -le $((16#0EBF)) ]; then echo true; return; fi
|
||||
# Bloque 1: GK107 (escritorio + móvil) — 0x0FC0..0x0FFF
|
||||
if [ "$dev_int" -ge $((16#0FC0)) ] && [ "$dev_int" -le $((16#0FFF)) ]; then echo true; return; fi
|
||||
# Bloque 2: GK110/GK110B/GK210 acotado puro — 0x1000..0x103F
|
||||
if [ "$dev_int" -ge $((16#1000)) ] && [ "$dev_int" -le $((16#103F)) ]; then echo true; return; fi
|
||||
# Bloque 3: GK104/GK106 (completo) — 0x1180..0x11FF
|
||||
if [ "$dev_int" -ge $((16#1180)) ] && [ "$dev_int" -le $((16#11FF)) ]; then echo true; return; fi
|
||||
# Bloque 4: GK208/GK208B acotado — 0x1280..0x12BF
|
||||
if [ "$dev_int" -ge $((16#1280)) ] && [ "$dev_int" -le $((16#12BF)) ]; then echo true; return; fi
|
||||
|
||||
echo false
|
||||
}
|
||||
|
||||
@@ -189,6 +189,60 @@ _install_nvidia_bookworm_bpo() {
|
||||
echo -e "${GREEN}NVIDIA driver installed from backports. Reboot required.${NC}"
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# Bookworm Kepler intercepción — fuerza nvidia-legacy-470xx-driver
|
||||
# sin pasar por nvidia-detect (evita falsa recomendación rama 535)
|
||||
# -------------------------------------------------------------------
|
||||
_install_nvidia_bookworm_kepler() {
|
||||
local nv_pkg="nvidia-legacy-470xx-driver"
|
||||
local nv_ver
|
||||
nv_ver=$(apt-cache policy "$nv_pkg" 2>/dev/null | awk 'NR==3 {print $2; exit}')
|
||||
|
||||
echo -e "${YELLOW}Kepler GPU detected — forcing ${nv_pkg}.${NC}"
|
||||
|
||||
local msg="Kepler GPU detectada (GKxxx).\n\n"
|
||||
msg+="En Debian 12 Bookworm, Kepler requiere el driver legacy\n"
|
||||
msg+="en lugar del moderno. Se usará el paquete:\n"
|
||||
msg+=" ${nv_pkg} ${nv_ver:-unknown}\n"
|
||||
msg+="para evitar fallos de pantalla negra.\n\n"
|
||||
msg+=" [SKIP] nvidia-detect (omitido — evita rama 535)\n"
|
||||
msg+=" [USE] ${nv_pkg}\n"
|
||||
msg+=" [+] firmware-misc-nonfree\n"
|
||||
msg+=" [+] nvidia-settings\n\n"
|
||||
msg+="Instalar driver legacy para Kepler?"
|
||||
|
||||
if ! _confirm_custom "NVIDIA Kepler — Bookworm" "$msg" "Install" "Skip" 14 70; then
|
||||
echo "Omitiendo driver Kepler."
|
||||
NVIDIA_DRIVER_MODE=""
|
||||
return 0
|
||||
fi
|
||||
|
||||
_run_cmd "NVIDIA Kepler" \
|
||||
"sudo apt install -y $nv_pkg firmware-misc-nonfree nvidia-settings" \
|
||||
"Instalando nvidia-legacy-470xx-driver..."
|
||||
|
||||
# Si backports está habilitado, ofrecer actualización
|
||||
if [ "$(is_backports_enabled)" == "true" ]; then
|
||||
local bpo_ver
|
||||
bpo_ver=$(apt-cache madison "$nv_pkg" 2>/dev/null | \
|
||||
grep "bookworm-backports" | awk '{print $3}' | head -1)
|
||||
if [ -n "$bpo_ver" ]; then
|
||||
local msg="Hay una versión en backports: ${bpo_ver}\n"
|
||||
msg+="Instalar desde bookworm-backports?"
|
||||
if _confirm "Kepler Backports" "$msg"; then
|
||||
_run_cmd "NVIDIA Kepler" \
|
||||
"sudo apt install -y -t bookworm-backports $nv_pkg" \
|
||||
"Actualizando Kepler driver desde backports..."
|
||||
NVIDIA_DRIVER_MODE="backports"
|
||||
echo -e "${GREEN}Kepler driver actualizado desde backports.${NC}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
NVIDIA_DRIVER_MODE="${NVIDIA_DRIVER_MODE:-stable}"
|
||||
echo -e "${GREEN}Kepler driver (${nv_pkg}) installed. Reboot required.${NC}"
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# CASE C: Kernel stable (any distro) → Debian stable, optional backports
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user