This commit is contained in:
2026-02-02 15:29:45 -05:00
parent b65bcb1c4c
commit 806d883476

View File

@@ -63,14 +63,21 @@ show_progress() {
check_requirements() {
log_message info "Checking medical equipment..."
local tools=("dmidecode" "lscpu" "ip" "smartctl" "sensors" "lspci")
local tools=("dmidecode" "lscpu" "ip" "smartctl" "sensors" "lspci" "bc")
local missing=()
for tool in "${tools[@]}"; do
if ! command -v "$tool" >/dev/null 2>&1; then
handle_error "Required instrument '$tool' is missing"
missing+=("$tool")
fi
done
if [[ ${#missing[@]} -gt 0 ]]; then
handle_error "Missing tools: ${missing[*]}\n Please install with 'curl -s http://10.10.10.63:3000/LotusGuild/freshStartScript/raw/branch/main/freshStart.sh | bash'"
fi
}
checkIfOnHypervisor() {
if ! command -v pveversion >/dev/null 2>&1; then
return 1