UX Refactor: Pauses, Status & WiFi

- Implemented global `_pause()` logic across all modules (`utils`, `gaming`, `firmware`, etc.), replacing hardcoded `read -p` calls to standardize exit pauses.
- Unified MangoHud installation into a single command (`apt install -y mangohud:i386`) for gaming and legacy branches.
- Refactored `_inst()` to return `*` instead of `(installed)`, moving the function globally to `utils.sh` and removing duplicates from helpers.
- Enhanced Broadcom WiFi detection with expanded grep patterns ('network controller', 'wireless', etc.) and ID fallback (`14e4`).
- Updated `_run_cmd` to integrate the new pause logic for consistent workflow interruptions during script execution.
This commit is contained in:
stornic56
2026-06-27 00:21:09 -05:00
committed by GitHub
parent ad0b39e159
commit 8d1a05e3e0
12 changed files with 50 additions and 22 deletions
+5
View File
@@ -268,6 +268,7 @@ _handle_wireless() {
_run_cmd "Broadcom" "sudo DEBIAN_FRONTEND=noninteractive apt install -y linux-headers-$(uname -r) broadcom-sta-dkms" \
"Installing Broadcom driver..."
echo "Broadcom proprietary driver installed. A reboot may be required."
_pause
installed_any=true
fi
fi
@@ -281,6 +282,7 @@ _handle_wireless() {
if ! $installed_any; then
echo "No special WiFi firmware needed -- base firmware-linux-nonfree covers this system."
_pause
fi
}
@@ -307,6 +309,7 @@ main menu to install proprietary firmwares." 10 65
# 3. Confirm
if ! _confirm "Firmware" "Apply the network & firmware plan?"; then
echo "Firmware installation skipped."
_pause
return
fi
@@ -328,6 +331,7 @@ main menu to install proprietary firmwares." 10 65
fi
else
echo "$fw_pkg already installed."
_pause
fi
else
local msg="firmware-linux-nonfree provides hardware drivers for:\n"
@@ -366,4 +370,5 @@ main menu to install proprietary firmwares." 10 65
# 8. Summary
echo -e "${GREEN}Network & firmware setup complete.${NC}"
_pause
}