Преглед изворни кода

gluon-autoupdater: read version from /lib/gluon/release

Nils Schneider пре 10 година
родитељ
комит
18f0fc6366

+ 1 - 1
package/gluon-autoupdater/Makefile

@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/gluon-autoupdater
 define Package/gluon-autoupdater
   SECTION:=gluon
   SECTION:=gluon
   CATEGORY:=Gluon
   CATEGORY:=Gluon
-  DEPENDS:=+ecdsautils +gluon-cron
+  DEPENDS:=+ecdsautils +gluon-cron +gluon-release
   TITLE:=Automatically update firmware
   TITLE:=Automatically update firmware
 endef
 endef
 
 

+ 1 - 1
package/gluon-autoupdater/files/usr/sbin/autoupdate

@@ -20,7 +20,7 @@ PUBKEYS=$(uci get autoupdater.@autoupdater[0].pubkey)
 GOOD_SIGNATURES=$(uci get autoupdater.@autoupdater[0].good_signatures)
 GOOD_SIGNATURES=$(uci get autoupdater.@autoupdater[0].good_signatures)
 BRANCH=$(uci get autoupdater.@autoupdater[0].branch)
 BRANCH=$(uci get autoupdater.@autoupdater[0].branch)
 
 
-VERSION_FILE=/etc/firmware_version
+VERSION_FILE=/lib/gluon/release
 
 
 newer_than() {
 newer_than() {
   local old="$(printf '%s\n%s\n' "$1" "$2" | sort -n | head -n 1)"
   local old="$(printf '%s\n%s\n' "$1" "$2" | sort -n | head -n 1)"