Add files via upload

This commit is contained in:
stornic56
2026-05-05 20:27:02 -05:00
committed by GitHub
parent 887ec4de25
commit 3178cf98ab
8 changed files with 827 additions and 0 deletions
+102
View File
@@ -0,0 +1,102 @@
#!/usr/bin/env bash
# Debianito
set -euo pipefail
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
# -------------------
# Load modules
# -----------------
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
MODULES_DIR="${SCRIPT_DIR}/modules"
source "${MODULES_DIR}/utils.sh"
source "${MODULES_DIR}/sudo_config.sh"
source "${MODULES_DIR}/repos.sh"
if [ -f "${MODULES_DIR}/firmware.sh" ]; then
source "${MODULES_DIR}/firmware.sh"
fi
if [ -f "${MODULES_DIR}/gpu.sh" ]; then
source "${MODULES_DIR}/gpu.sh"
fi
if [ -f "${MODULES_DIR}/gaming.sh" ]; then
source "${MODULES_DIR}/gaming.sh"
fi
if [ -f "${MODULES_DIR}/extras.sh" ]; then
source "${MODULES_DIR}/extras.sh"
fi
# --------------------------
# Global state
# --------------------------
REPOS_CONFIGURED=false
DEBIAN_VERSION=""
DEBIAN_CODENAME=""
# ---------------------------------
# menu
# ---------------------------------
if ! echo "╔" | grep -q "t"; then
BOX_DRAWING=false
else
BOX_DRAWING=true
fi
main_menu() {
PS3="Select an option (1-7): "
options=(
"User Privileges & Feedback"
"Configure repositories"
"Setup Wireless & Firmware"
"Configure Graphics Stack and Tools"
"Gaming Setup and Performance"
"Install extra applications"
"Exit"
)
while true; do
echo ""
printf "${RED}╔═══════ DEBIANITO ═══════════╗\n" >&2
printf "║ Debian Post-Install Setup\n${NC}"
echo -e "\033[1;97m║─────────── SYSTEM INFO ─────┤\n${NC}\033[0m"
echo "Detected: Debian ${DEBIAN_VERSION} (${DEBIAN_CODENAME})"
echo "CPU: $(get_cpu_summary)"
echo "RAM: $(get_ram_summary)"
echo "GPU: $(get_gpu_summary)"
echo "WiFi: $(get_wifi_summary)"
echo ""
select opt in "${options[@]}"; do
case $REPLY in
1) config_sudo ;;
2) configure_repos ;;
3) install_firmware ;;
4) install_gpu_drivers ;;
5) install_gaming ;;
6) install_extras ;;
7) echo "Exiting."; exit 0 ;;
*) echo "Invalid choice. Please try again." ;;
esac
break
done
done
}
# ----------------
# Pre-run checks
# ----------------
check_root
check_sudo
detect_debian_version
detect_cpu_ram
detect_gpu
detect_wifi_chipset
main_menu