Files
clearpilot/system/clearpilot/tools/decrypt
Comma Device 1f32f2279c wip
2024-04-28 03:48:55 +00:00

18 lines
337 B
Bash

#!/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 decryption key
dongle_id=/data/params/d/DongleId
# Decrypt the file
cat "$src" | ccrypt -d -k "$dongle_id" > "$dest"