c2ab0fa662
Restoring the working tree to the pristine pre-Claude baseline previously preserved at /data/clearpilot (now /data/clearpilot-baseline). The prior modified-but-broken tree is snapshotted at /data/openpilot-broken-2026-05-03 and tagged here as pre-reset-2026-05-03 for reference. From here, features (UI changes, dashcam, telemetry, GPS, display modes, speed logic, standstill power saving, etc.) will be re-introduced one at a time with proper testing.
18 lines
337 B
Bash
Executable File
18 lines
337 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Check for the correct number of arguments
|
|
if [ "$#" -ne 2 ]; then
|
|
echo "Usage: $0 source destination"
|
|
exit 1
|
|
fi
|
|
|
|
# Set variables for source and destination
|
|
src="$1"
|
|
dest="$2"
|
|
|
|
# Read DongleId for encryption key
|
|
dongle_id=/data/params/d/DongleId
|
|
|
|
# Encrypt the file
|
|
cat "$src" | ccrypt -e -k "$dongle_id" > "$dest"
|