feat: subcomando uninstall

- core/uninstall.sh: run_uninstall() — confirmacion interactiva obligatoria (--yes la omite), rm -rf del symlink O directorio real + /opt/intel/openvino_2026.* (rm -rf no sigue symlinks), --purge-drivers opcional (dpkg -r de los 6 paquetes, best-effort con aviso)
- main.sh: dispatch en el mismo case que doctor (antes del root check); run_uninstall aplica su propio check de root
This commit is contained in:
stornic56
2026-09-29 11:12:24 -05:00
parent d5930f2ec3
commit 09de89f31e
2 changed files with 64 additions and 0 deletions
+7
View File
@@ -18,10 +18,17 @@ source "$CORE_DIR/common.sh"
# Subcommands (before the root check: doctor is a post-install user verification)
case "${1:-}" in
doctor)
shift
source "$CORE_DIR/doctor.sh"
run_doctor_checks
exit 0
;;
uninstall)
shift
source "$CORE_DIR/uninstall.sh"
run_uninstall "$@"
exit 0
;;
esac
# Option parsing (before the root check: parsing needs no privileges)