File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 33chown -R arduino:arduino /home/arduino/.local/share/arduino-app-cli
44
55systemctl enable arduino-app-cli
6+ systemctl enable arduino-burn-bootloader
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33systemctl disable arduino-app-cli
4+ systemctl disable arduino-burn-bootloader
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =Burn arduino zephyr bootloader on first boot
3+ After =fs-local.target
4+ ConditionPathExists =!/home/arduino/.local/share/arduino-app-cli/bootloader_burned.flag
5+
6+ [Service]
7+ Type =oneshot
8+ RemainAfterExit =true
9+ User =arduino
10+ Group =arduino
11+ ExecStart =/usr/bin/arduino-cli burn-bootloader -b arduino:zephyr:unoq -P jlink
12+ ExecStartPost =/bin/mkdir -p /home/arduino/.local/share/arduino-app-cli
13+ ExecStartPost =/bin/touch /home/arduino/.local/share/arduino-app-cli/bootloader_burned.flag
14+ StandardOutput =journal
15+ StandardError =journal
16+
17+ [Install]
18+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments