$ sudo ./update.sh
=====update.sh=====
home path: /home/pi
install path: /home/pi/sunray_install
service running: true
checking for updates...
found version: Sunray_1.0.314_RM18_1.1.16.zip.enc
applying update...
EUID=0
PWD=/home/pi/sunray_install
url=http://grauonline.de/alexwww/ngp_sunray_firmware/Sunray_1.0.314_RM18_1.1.16.zip.enc
file=Sunray_1.0.314_RM18_1.1.16.zip.enc
pkg=/tmp/sunray_ngp_firmware/Sunray_1.0.314_RM18_1.1.16.zip.enc
pkgdec=/tmp/sunray_ngp_firmware/Sunray_1.0.314_RM18_1.1.16.zip
stopping sunray service...
killing any running sunray process...
sunray: no process found
downloading update...
decrypting...
unzipping...
--------------------------
running flash tool...
enabling GPIO SWD for ngp main mcu
Open On-Chip Debugger 0.10.0+dev-01138-ga4735e4d-dirty (2022-01-06-13:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter_nsrst_assert_width: 100
Info : SysfsGPIO JTAG/SWD bitbang driver
Info : SWD only mode enabled (specify tck, tms, tdi and tdo gpios to add JTAG mode)
Info : This adapter doesn't support configurable speed
Info : SWD DPIDR 0x1ba01477
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : stm32f1x.cpu: external reset detected
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08006238 msp: 0x20010000
----Flashing----
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08006238 msp: 0x20010000
** Programming Started **
Info : device id = 0x10036414
Info : flash size = 512kbytes
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
shutdown command invoked
--------------------------
update installed!
removing downloaded package (.zip)...
removing downloaded package (.zip.enc)...
restarting sunray service...