mirror of
https://github.com/stornic56/openvino-runtime-simple-installer.git
synced 2026-10-31 13:08:06 +00:00
fix: contenido visible en ingles + cuadro del menu alineado
- Traduccion completa del contenido visible a ingles: doctor.sh (14 cadenas), menu.sh (MENU_OPTS, footer, error), uninstall.sh (9 cadenas), neo_apt.sh (2 cadenas), main.sh (2 cadenas), setup_ubuntu.sh (1 cadena), label [AVISO]->[WARNING] en common.sh - Comentarios en español de los archivos nuevos a ingles (consistencia con el codebase) - Cuadro del menu alineado: pad 36->38 (medicion exacta: bordes y header 48, opciones 46 — delta 2; todas las lineas del cuadro miden ahora 48) - Verificado: medicion 10/10 lineas a 48, 0 espanol visible, bash -n en los 7 archivos, doctor en ingles TODO OK exit=0
This commit is contained in:
+23
-22
@@ -1,70 +1,71 @@
|
||||
#!/bin/bash
|
||||
# ------------------------------------------------------------------------------
|
||||
# doctor: verificacion post-instalacion (sin root requerido).
|
||||
# Sourced por main.sh (subcomando doctor) y por el menu.
|
||||
# Salida con print_* de common.sh; exit code = numero de checks con fallo.
|
||||
# doctor: post-installation verification (no root required).
|
||||
# Sourced by main.sh (doctor subcommand) and by the menu.
|
||||
# Output with print_* from common.sh; exit code = number of failed checks.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
run_doctor_checks() {
|
||||
print_step "Doctor: verificando la instalacion de OpenVINO..."
|
||||
print_step "Doctor: verifying OpenVINO installation..."
|
||||
local fails=0
|
||||
|
||||
# 1. Symlink estable
|
||||
# 1. Stable symlink
|
||||
if [ -L /opt/intel/openvino_2026 ]; then
|
||||
print_substep "Symlink OK: /opt/intel/openvino_2026 -> $(readlink /opt/intel/openvino_2026)"
|
||||
else
|
||||
print_error "Falta el symlink /opt/intel/openvino_2026 (¿la instalacion no se realizo?)"
|
||||
print_error "Missing symlink /opt/intel/openvino_2026 (was the installation performed?)"
|
||||
fails=$((fails+1))
|
||||
fi
|
||||
|
||||
# 2. Version instalada
|
||||
# 2. Installed version
|
||||
if [ -f /opt/intel/openvino_2026/runtime/version.txt ]; then
|
||||
print_substep "Version instalada: $(cat /opt/intel/openvino_2026/runtime/version.txt)"
|
||||
print_substep "Installed version: $(cat /opt/intel/openvino_2026/runtime/version.txt)"
|
||||
else
|
||||
print_error "No se encontro runtime/version.txt"
|
||||
print_error "runtime/version.txt not found"
|
||||
fails=$((fails+1))
|
||||
fi
|
||||
|
||||
# 3. OpenCL (clinfo)
|
||||
# 3. OpenCL (clinfo) — capture first (clinfo output is large; grep -q would
|
||||
# SIGPIPE-kill the pipe and report a false negative under pipefail)
|
||||
if command -v clinfo >/dev/null 2>&1; then
|
||||
CLINFO_OUT=$(clinfo 2>/dev/null || true) # clinfo exits !=0 when no devices
|
||||
if [[ "${CLINFO_OUT^^}" == *"DEVICE NAME"* ]]; then
|
||||
print_substep "OpenCL OK (dispositivo detectado)"
|
||||
print_substep "OpenCL OK (device detected)"
|
||||
else
|
||||
print_warning "clinfo no detecta dispositivo (¿falta el driver NEO o los grupos render/video?)"
|
||||
print_warning "clinfo does not detect a device (missing NEO driver or render/video groups?)"
|
||||
fails=$((fails+1))
|
||||
fi
|
||||
else
|
||||
print_warning "clinfo no esta instalado"
|
||||
print_warning "clinfo is not installed"
|
||||
fails=$((fails+1))
|
||||
fi
|
||||
|
||||
# 4. VAAPI (vainfo)
|
||||
# 4. VAAPI (vainfo) — same capture-first pattern (consistency + latent SIGPIPE)
|
||||
if command -v vainfo >/dev/null 2>&1; then
|
||||
VAINFO_OUT=$(vainfo 2>/dev/null || true)
|
||||
if [[ "${VAINFO_OUT^^}" == *"DRIVER VERSION"* ]]; then
|
||||
print_substep "VAAPI OK (driver cargado)"
|
||||
print_substep "VAAPI OK (driver loaded)"
|
||||
else
|
||||
print_warning "vainfo no carga driver (¿falta intel-media-va-driver?)"
|
||||
print_warning "vainfo does not load a driver (missing intel-media-va-driver?)"
|
||||
fails=$((fails+1))
|
||||
fi
|
||||
else
|
||||
print_warning "vainfo no esta instalado"
|
||||
print_warning "vainfo is not installed"
|
||||
fails=$((fails+1))
|
||||
fi
|
||||
|
||||
# 5. Grupos render/video
|
||||
# 5. render/video groups
|
||||
if id -Gn 2>/dev/null | grep -qw render && id -Gn 2>/dev/null | grep -qw video; then
|
||||
print_substep "Grupos OK: el usuario esta en render y video"
|
||||
print_substep "Groups OK: user is in render and video"
|
||||
else
|
||||
print_warning "El usuario NO esta en los grupos render/video (reinicia la sesion tras instalar)"
|
||||
print_warning "User is NOT in the render/video groups (restart your session after installing)"
|
||||
fails=$((fails+1))
|
||||
fi
|
||||
|
||||
if [ "$fails" -eq 0 ]; then
|
||||
print_substep "Doctor: TODO OK"
|
||||
print_substep "Doctor: ALL OK"
|
||||
else
|
||||
print_warning "Doctor: $fails check(s) con avisos o fallos"
|
||||
print_warning "Doctor: $fails check(s) with warnings or failures"
|
||||
fi
|
||||
return "$fails"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user