8 lines
396 B
Bash
8 lines
396 B
Bash
#!/usr/bin/env bash
|
|
# Called by udev when CM4 in boot mode (0a5c:2711 or 2b8e) is connected.
|
|
# Start the flash service via systemd so it runs under systemd, not udev —
|
|
# otherwise udev kills the process when the device re-enumerates (first→second stage).
|
|
# --no-block: return immediately so udev doesn't wait; the service runs in the background.
|
|
|
|
systemctl --no-block start cm4-flash.service
|