Files
linux_system_tuning/launcher.sh
mindesbunister 2edb4a73c3 Complete Linux system optimization suite with tmpfs, zram, and German locale support
- Fixed missing setup_tmpfs() function that was causing silent failures
- Added comprehensive system scanning for browsers, IDEs, gaming caches
- Implemented detailed optimization information display for transparency
- Added German locale compatibility for 'free' command (Speicher: vs Mem:)
- Fixed division by zero errors in RAM calculations
- Created tmpfs-info.sh helper script for detailed status reporting
- Enhanced scanning to work on already-optimized systems
- Added comprehensive optimization breakdowns with purpose explanations
2025-09-23 12:11:45 +02:00

27 lines
707 B
Bash
Executable File

#!/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