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