Upload Firmware: Unterschied zwischen den Versionen
		
		
		
		
		
		Zur Navigation springen
		Zur Suche springen
		
				
		
		
	
| 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.…“) | Mb (Diskussion | Beiträge)  | ||
| (11 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | If you want to  | + | If you want to install the same firmware update file to multiple devices, you can use http command line tools ([https://curl.haxx.se/windows/ curl]) instead of using your Internet Browser. | 
| − | + |   upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.2 | |
| − | + |   upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.3 | |
| − | + |   upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.4 | |
| + | ==upload.bat== | ||
| + |  @echo off | ||
| + |  REM Upload FirmwareFile | ||
| + |  curl.exe --verbose -F file=@%1 "http://%2/fwupdate.txt?type=0" | ||
| + | |||
| + |  REM Reboot | ||
| + |  curl "http://%2/status.json?cmd=39" | ||
| − | = upload.sh = | + | ==upload.sh== | 
|   #!/bin/bash |   #!/bin/bash | ||
| Zeile 14: | Zeile 21: | ||
|   # Rebot to apply |   # Rebot to apply | ||
|   curl "http://$2/status.json?cmd=39" |   curl "http://$2/status.json?cmd=39" | ||
| + | |||
| + | |||
| + | |||
| + | To add HTTP username/password Credentials, use curl command line arguments like | ||
| + |   -u, --user <user:password> Server user and password | ||
Aktuelle Version vom 4. Mai 2021, 13:11 Uhr
If you want to install the same firmware update file to multiple devices, you can use http command line tools (curl) instead of using your Internet Browser.
upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.2 upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.3 upload.bat firmware_epc8226_v1.7.0.bin 192.168.0.4
upload.bat
@echo off REM Upload FirmwareFile curl.exe --verbose -F file=@%1 "http://%2/fwupdate.txt?type=0" REM Reboot curl "http://%2/status.json?cmd=39"
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"
To add HTTP username/password Credentials, use curl command line arguments like
-u, --user <user:password> Server user and password