1
0

waouw-firstboot.service 634 B

123456789101112131415161718
  1. # /boot/waouw-firstboot.service
  2. [Unit]
  3. Description=Waouw First-Boot Installer
  4. Wants=network-online.target
  5. After=network-online.target
  6. # WaouW : ne JAMAIS rejouer install si elle a deja reussi (anti reboot loop)
  7. ConditionPathExists=!/boot/firmware/waouw-install-success.txt
  8. ConditionPathExists=!/boot/waouw-install-success.txt
  9. [Service]
  10. Type=simple
  11. ExecStart=/bin/bash -lc '[ -f /boot/waouw-install.sh ] && /bin/bash /boot/waouw-install.sh || /bin/bash /boot/firmware/waouw-install.sh'
  12. StandardOutput=append:/boot/waouw-install.log
  13. StandardError=append:/boot/waouw-install.log
  14. RemainAfterExit=no
  15. [Install]
  16. WantedBy=multi-user.target