sysmngr: allow url as path in upgrade

This commit is contained in:
Vivek Kumar Dutta 2025-10-28 16:18:21 +05:30
parent 64cf5c7c9f
commit df374f7a56
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
2 changed files with 1 additions and 4 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=sysmngr PKG_NAME:=sysmngr
PKG_VERSION:=1.0.31 PKG_VERSION:=1.0.32
LOCAL_DEV:=0 LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1) ifneq ($(LOCAL_DEV),1)

View file

@ -165,9 +165,6 @@ case "$1" in
# Sanity: is the given bankid really the one to be upgraded? # Sanity: is the given bankid really the one to be upgraded?
[ "${bank}" -eq "$(iopsys_get_next_bank_id)" ] || ret=1 [ "${bank}" -eq "$(iopsys_get_next_bank_id)" ] || ret=1
# Does the given file actually exist?
[ -r "${path}" ] || ret=1
# Is the auto_activate provided in the JSON a boolean? # Is the auto_activate provided in the JSON a boolean?
# (meaning: here we should get 0 or 1 instead of any other string) # (meaning: here we should get 0 or 1 instead of any other string)
[ "${auto_activate}" == "0" -o "${auto_activate}" == "1" ] || ret=1 [ "${auto_activate}" == "0" -o "${auto_activate}" == "1" ] || ret=1