Upload Firmware

Aus Gude Systems GmbH
Version vom 12. August 2019, 16:23 Uhr von Mb (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „If you want to insrtall the same firmware update file to multiple devices, you can use http command line tools (curl) instead of using your Internet Browser.…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

If you want to insrtall the same firmware update file to multiple devices, you can use http command line tools (curl) instead of using your Internet Browser.

./upload.sh firmware_epc8226_v1.7.0.bin 192.168.0.2
./upload.sh firmware_epc8226_v1.7.0.bin 192.168.0.3
./upload.sh firmware_epc8226_v1.7.0.bin 192.168.0.4


upload.sh

#!/bin/bash

# Upload FirmwareFile
curl --verbose -F file=@./$1 "http://$2/fwupdate.txt?type=0"

# Rebot to apply
curl "http://$2/status.json?cmd=39"