Commit 4cbc692
committed
launch_openpilot: move WiFi regdomain hook to top-level (covers c3 + c4)
Move the 'sudo iw reg set US' block from
sunnypilot/system/hardware/c3/launch_chffrplus.sh agnos_init into
launch_openpilot.sh, before the model dispatch. This way the hook runs
once for BOTH comma 3 ('comma tici') and comma 4 ('comma mici'), since
they share this entry point.
Dispatch logic (the 'if MODEL == comma tici' block) is intentionally
left untouched to minimise merge conflicts with upstream.
Subshell + '|| true' around the hook is mandatory: set -euo pipefail
and 'trap ... ERR' are active at this point in the script, so any
unhandled failure would trip the trap and exec the fallback launcher,
which would break the c3 path. The subshell isolates failures.1 parent 1e8c970 commit 4cbc692
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
12 | 23 | | |
13 | 24 | | |
14 | 25 | | |
| |||
0 commit comments