mirror of
https://github.com/stornic56/debianito-post-install.git
synced 2026-07-16 05:49:49 +00:00
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:
@@ -490,6 +490,7 @@ _cat_general_bullseye() {
|
||||
if _confirm "Firmware Scan" "Scan for firmware updates now?"; then
|
||||
sudo fwupdmgr refresh --force 2>/dev/null || true
|
||||
sudo fwupdmgr get-updates 2>&1 || true
|
||||
_pause
|
||||
fi
|
||||
;;
|
||||
nvme-cli)
|
||||
@@ -505,6 +506,7 @@ _cat_general_bullseye() {
|
||||
esac
|
||||
done
|
||||
echo -e "${GREEN}System tools installed.${NC}"
|
||||
_pause
|
||||
}
|
||||
|
||||
_cat_fetch_bullseye() {
|
||||
|
||||
@@ -175,6 +175,7 @@ Installs matching 32-bit graphics drivers."; then
|
||||
|
||||
if [ -z "$choices" ]; then
|
||||
echo "No gaming tools selected."
|
||||
_pause
|
||||
return
|
||||
fi
|
||||
|
||||
@@ -184,16 +185,16 @@ Installs matching 32-bit graphics drivers."; then
|
||||
for pkg in $cleaned; do
|
||||
case $pkg in
|
||||
mangohud)
|
||||
_run_cmd "MangoHud" "sudo apt install -y mangohud" "Installing MangoHud..."
|
||||
local mh_pkgs="mangohud"
|
||||
if $enable_32bit; then
|
||||
local mh32_ver
|
||||
mh32_ver=$(apt-cache policy mangohud:i386 2>/dev/null | \
|
||||
awk 'NR==3 {print $2; exit}')
|
||||
if [ -n "$mh32_ver" ] && [ "$mh32_ver" != "(none)" ]; then
|
||||
_run_cmd "MangoHud" "sudo apt install -y mangohud:i386" \
|
||||
"Installing MangoHud 32-bit..."
|
||||
mh_pkgs+=" mangohud:i386"
|
||||
fi
|
||||
fi
|
||||
_run_cmd "MangoHud" "sudo apt install -y $mh_pkgs" "Installing MangoHud (64 + 32-bit)..."
|
||||
;;
|
||||
gamemode) _run_cmd "GameMode" "sudo apt install -y gamemode" "Installing GameMode..." ;;
|
||||
goverlay) _run_cmd "GOverlay" "sudo apt install -y goverlay" "Installing GOverlay..." ;;
|
||||
@@ -204,4 +205,5 @@ Installs matching 32-bit graphics drivers."; then
|
||||
done
|
||||
|
||||
echo -e "${GREEN}Lightweight gaming setup complete.${NC}"
|
||||
_pause
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user