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:
@@ -2,11 +2,11 @@
|
||||
# Gaming performance tools installation
|
||||
|
||||
install_mangohud() {
|
||||
_run_cmd "MangoHud" "sudo apt install -y mangohud" "Installing MangoHud..."
|
||||
local pkgs="mangohud"
|
||||
if dpkg --print-foreign-architectures | grep -q i386; then
|
||||
echo "Installing 32-bit MangoHud..."
|
||||
_run_cmd "MangoHud" "sudo apt install -y mangohud:i386" "Installing 32-bit MangoHud..."
|
||||
pkgs+=" mangohud:i386"
|
||||
fi
|
||||
_run_cmd "MangoHud" "sudo apt install -y $pkgs" "Installing MangoHud (64 + 32-bit)..."
|
||||
}
|
||||
|
||||
install_gamemode() {
|
||||
@@ -60,6 +60,7 @@ install_openrgb() {
|
||||
|
||||
rm -f "${deb_path}"
|
||||
echo -e "${GREEN}OpenRGB installed. NOTE: You must reboot or log out/in for the 'i2c' group to take effect.${NC}"
|
||||
_pause
|
||||
}
|
||||
|
||||
install_retroarch() {
|
||||
@@ -86,5 +87,5 @@ install_retroarch() {
|
||||
echo " Please check our repository's documentation or visit:"
|
||||
echo " https://wiki.debian.org/RetroArch"
|
||||
echo "================================================================="
|
||||
read -p "Press ENTER to continue..."
|
||||
_pause
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user