Files
cariflex/tools/EVerest-main/modules/Misc/Linux_Systemd_Rauc/diagnostics_uploader.sh
Eric F d398a6ced2 Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1)
- OpenOCPP extracted (firmware OCPP 1.6J/2.0.1)
- ShapeShifter library installed (pip install -e)
- ShapeShifter specification extracted
- EVerest extracted

TODO updated with progress
2026-06-08 00:38:27 -04:00

28 lines
742 B
Bash
Executable File

#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# Copyright Pionix GmbH and Contributors to EVerest
#
. "${1}"
echo "$UPLOADING"
sleep 2
curl -L --progress-bar --connect-timeout "$CONNECTION_TIMEOUT" -T "${4}" "${2}"
curl_exit_code=$?
if [[ $curl_exit_code -eq 0 ]]; then
echo "$UPLOADED"
elif [[ $curl_exit_code -eq 67 ]] || [[ $curl_exit_code -eq 35 ]] || [[ $curl_exit_code -eq 69 ]] ||
[[ $curl_exit_code -eq 9 ]]; then
echo "$PERMISSION_DENIED"
elif [[ $curl_exit_code -eq 3 ]] || [[ $curl_exit_code -eq 6 ]] || [[ $curl_exit_code -eq 10 ]] ||
[[ $curl_exit_code -eq 87 ]]; then
echo "$BAD_MESSAGE"
elif [[ $curl_exit_code -eq 1 ]]; then
echo "$NOT_SUPPORTED_OPERATION"
else
echo "$UPLOAD_FAILURE"
fi