🚀 Add One-Button Interactive System Optimizer

 New Features:
- Interactive one-button optimizer with smart detection
- Analyzes existing optimizations and detects suboptimal configs
- User-controlled selective optimization (no forced changes)
- Handles mixed scenarios (some optimal, some suboptimal, some missing)
- Quick status checker for system overview
- Auto-sudo launcher for ease of use

🎯 Key Improvements:
- Detects when optimizations exist but aren't ideal (e.g., oversized zram)
- Only prompts for optimizations that need attention
- Leaves well-configured systems alone
- Clear status reporting and user choice
- German locale support for system commands

🔧 Components Added:
- one-button-optimizer.sh: Main interactive optimizer
- quick-status-check.sh: Quick system status overview
- launcher.sh: Auto-sudo convenience launcher
- Updated README with usage instructions

Tested on 15GB RAM system with mixed optimization state.
This commit is contained in:
root
2025-09-22 12:36:07 +02:00
parent 897de0fbb1
commit c4a3e9285f
4 changed files with 577 additions and 1 deletions

27
launcher.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
# One-Button System Optimizer Launcher
# Simple launcher that checks for root and runs the optimization
SCRIPT_PATH="/tmp/optimize-system.sh"
echo "🚀 One-Button Linux System Optimizer"
echo "====================================="
echo ""
# Check if optimization script exists
if [[ ! -f "$SCRIPT_PATH" ]]; then
echo "❌ Optimization script not found at $SCRIPT_PATH"
exit 1
fi
# Check if running as root
if [[ $EUID -eq 0 ]]; then
# Already root, run directly
exec "$SCRIPT_PATH"
else
# Not root, use sudo
echo "🔐 Root privileges required for system optimization"
echo "You will be prompted for your password..."
echo ""
exec sudo "$SCRIPT_PATH"
fi