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:
+16
-16
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
# ------------------------------------------------------------------------------
|
||||
# uninstall: desinstala OpenVINO Runtime (y opcionalmente los drivers NEO).
|
||||
# Sourced por main.sh (subcomando uninstall). Requiere root para operar.
|
||||
# Argumentos: --purge-drivers (dpkg -r de los 6 paquetes NEO), --yes (sin prompt).
|
||||
# uninstall: removes OpenVINO Runtime (and optionally the NEO drivers).
|
||||
# Sourced by main.sh (uninstall subcommand). Requires root to operate.
|
||||
# Arguments: --purge-drivers (dpkg -r of the 6 NEO packages), --yes (no prompt).
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
run_uninstall() {
|
||||
@@ -18,40 +18,40 @@ run_uninstall() {
|
||||
done
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
print_error "uninstall requiere root. Usa: sudo bash main.sh uninstall [--purge-drivers] [--yes]"
|
||||
print_error "uninstall requires root. Use: sudo bash main.sh uninstall [--purge-drivers] [--yes]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
print_step "Uninstall: desinstalando OpenVINO Runtime..."
|
||||
print_step "Uninstall: removing OpenVINO Runtime..."
|
||||
|
||||
# Confirmacion obligatoria (con --yes se omite)
|
||||
# Mandatory confirmation (skipped with --yes)
|
||||
if [ "$ASSUME_YES" != true ]; then
|
||||
read -r -p "Esto eliminara /opt/intel/openvino_2026* (todas las instalaciones 2026). ¿Continuar? [y/n]: " response || {
|
||||
print_error "Sin entrada disponible. Desinstalacion cancelada."
|
||||
read -r -p "This will remove /opt/intel/openvino_2026* (all 2026 installations). Continue? [y/n]: " response || {
|
||||
print_error "No input available. Uninstall cancelled."
|
||||
exit 1
|
||||
}
|
||||
case "$response" in
|
||||
[yY]*) ;;
|
||||
*)
|
||||
print_error "Desinstalacion cancelada por el usuario."
|
||||
print_error "Uninstall cancelled by the user."
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Runtime: symlink O directorio real + cualquier instalacion 2026
|
||||
# (rm -rf no sigue symlinks — cubre ambos casos)
|
||||
# Runtime: symlink OR real directory + any 2026 installation
|
||||
# (rm -rf does not follow symlinks — covers both cases)
|
||||
rm -rf /opt/intel/openvino_2026
|
||||
rm -rf /opt/intel/openvino_2026.*
|
||||
print_substep "OpenVINO Runtime eliminado (/opt/intel/openvino_2026*)"
|
||||
print_substep "OpenVINO Runtime removed (/opt/intel/openvino_2026*)"
|
||||
|
||||
# Drivers NEO (opcional, best-effort con aviso)
|
||||
# NEO drivers (optional, best-effort with a warning)
|
||||
if [ "$PURGE_DRIVERS" = true ]; then
|
||||
print_substep "Purgando drivers NEO (dpkg -r)..."
|
||||
print_substep "Purging NEO drivers (dpkg -r)..."
|
||||
if ! dpkg -r intel-opencl-icd intel-ocloc libigdgmm12 libze-intel-gpu1 intel-igc-core-2 intel-igc-opencl-2 2>/dev/null; then
|
||||
print_warning "Algunos paquetes NEO no estaban instalados (en Fedora: dnf remove intel-compute-runtime)"
|
||||
print_warning "Some NEO packages were not installed (on Fedora: dnf remove intel-compute-runtime)"
|
||||
fi
|
||||
fi
|
||||
|
||||
print_substep "Desinstalacion completada."
|
||||
print_substep "Uninstall completed."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user