mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-31 21:23:49 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
21 lines
478 B
Bash
Executable File
21 lines
478 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
# On any failure, run the fallback launcher
|
|
trap 'exec ./launch_chffrplus.sh' ERR
|
|
C3_LAUNCH_SH="./sunnypilot/system/hardware/c3/launch_chffrplus.sh"
|
|
|
|
MODEL="$(tr -d '\0' < "/sys/firmware/devicetree/base/model")"
|
|
export MODEL
|
|
|
|
if [ "$MODEL" = "comma tici" ]; then
|
|
# Force a failure if the launcher doesn't exist
|
|
[ -x "$C3_LAUNCH_SH" ] || false
|
|
|
|
# If it exists, run it
|
|
exec "$C3_LAUNCH_SH"
|
|
fi
|
|
|
|
exec ./launch_chffrplus.sh
|