#!/bin/bash # WaouW Auto-Installer via rc.local (méthode alternative) # Vérifier si déjà installé if [ -f /opt/waouw/.installed ]; then exit 0 fi # Attendre que le réseau soit prêt sleep 30 # Vérifier que les fichiers existent if [ ! -f /boot/firmware/install.sh ]; then echo "ERREUR: install.sh introuvable" >> /var/log/waouw-rc.log exit 1 fi echo "=== Lancement installation WaouW via rc.local ===" >> /var/log/waouw-rc.log date >> /var/log/waouw-rc.log # Lancer l'installation bash /boot/firmware/install.sh >> /var/log/waouw-rc.log 2>&1 # Marquer comme installé touch /opt/waouw/.installed echo "=== Installation terminée ===" >> /var/log/waouw-rc.log