Skip to content

Commit

Permalink
firmware-updater: change factory image update
Browse files Browse the repository at this point in the history
Change automatic update of factory image from major versions to subversions.
  • Loading branch information
Zatharalex committed Feb 15, 2024
1 parent f7f2ca4 commit 8ee95e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utils/firmware-updater/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=firmware-updater
PKG_VERSION:=1.0
PKG_VERSION:=1.1
PKG_RELEASE:=$(AUTORELEASE)

PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
Expand Down
4 changes: 2 additions & 2 deletions utils/firmware-updater/files/firmware-updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
[ ! -x /usr/bin/omnia-mcutool ] || \
omnia-mcutool --upgrade
[ "0$(uci get pkglists.firmware_update.factory)" -ne 1 ] || \
[ "$(schnapps factory-version | cut -f 1 -d .)" -eq "$(cut -f 1 -d . /etc/turris-version)" ] || \
schnapps update-factory > /dev/null 2>&1
[ "$(schnapps factory-version | cut -f 1,2 -d .)" == "$(cut -f 1,2 -d . /etc/turris-version)" ] || \
schnapps update-factory > /dev/null 2>&1

0 comments on commit 8ee95e7

Please sign in to comment.