istoreos/ota: fix cancel downloading task
```
fcurl --connect-timeout 5 --progress-bar -o /tmp/firmware.img.part "$OTA_URL_BASE/$img" 2>/tmp/firmware.img.progress &
local pid="$!"
```
if we don't use alias, the pid will point to sub shell, not curl.
on canceling, kill signal should send to curl.
This commit is contained in:
parent
37ea01fa3e
commit
1bddd11e72
@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=LuCI for OTA upgrade
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=1.3.1
|
||||
PKG_VERSION:=1.3.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=jjm2473 <jjm2473@gmail.com>
|
||||
|
||||
|
||||
@ -19,9 +19,7 @@ sha256() {
|
||||
sha256sum $1 | cut -d' ' -f1
|
||||
}
|
||||
|
||||
fcurl() {
|
||||
curl -L --fail --show-error "$@"
|
||||
}
|
||||
alias fcurl='curl -L --fail --show-error'
|
||||
|
||||
download() {
|
||||
local img=$1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user