install-rc.local 686 B

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