|
#!/bin/env sh
|
|
|
|
device_ip="$1"
|
|
file="$2"
|
|
|
|
curl \
|
|
--insecure \
|
|
--no-progress-meter \
|
|
--fail-with-body \
|
|
--request POST \
|
|
--url "https://espota.ctdo.de/" \
|
|
--header "Content-Type: multipart/form-data" \
|
|
--form ip="$device_ip" \
|
|
--form "firmware=@$file" \
|
|
--no-buffer
|