Matthias Schiffer
779d428d9a
gluon-alfred: split announce.lua into several files and move parts into the appropriate packages
...
This also fixes the type of a few fields which were strings instead of numbers.
2014-06-09 19:23:16 +02:00
Matthias Schiffer
e16bfbe309
gluon-autoupdater: replace config script generator with Lua script
2014-05-17 13:43:08 +02:00
NeoRaider
2ced9d31f7
Merge pull request #23 from sargon/autoupdate-enforce
...
gluon-autoupdater: Always allow forced autoupdate.
2014-04-01 19:32:40 +02:00
Daniel Ehlers
70cadea46d
gluon-autoupdater: Always allow forced autoupdate.
...
On nodes with autoupdate disabled the cmdline parameter '-f' has no
effect. But using the autoupdater for manual updates is quite handy.
2014-03-19 21:02:21 +01:00
Jan-Philipp Litza
42afe55bdd
gluon-autoupdater: update manifest.sample
2014-03-19 18:14:48 +01:00
Matthias Schiffer
c0028b85c9
gluon-autoupdater: fix version comparison
2014-03-11 20:32:58 +01:00
Nils Schneider
ad808db9ea
gluon-autoupdater: drop caches before upgrade
...
This will free about 5 to 12 MB of RAM even on lightly used devices
yielding plenty of RAM for autoupdate to succeed.
2014-02-19 01:18:54 +01:00
Matthias Schiffer
0e48961691
gluon-autoupdater: enable by default only if GLUON_BRANCH is set, set default branch accordingly
2014-02-11 17:10:11 +01:00
Nils Schneider
6cee578c05
gluon-autoupdater: depend on sha512sum
...
This makes gluon-autoupdater depend on coreutils-sha512sum when it's not
included in busybox.
2014-02-09 23:16:34 +01:00
Matthias Schiffer
560ec71d95
Don't use site config in compile step
2014-02-06 19:57:39 +01:00
Matthias Schiffer
bf44d5523c
gluon-autoupdater: add SHA512 support
2014-02-06 00:17:33 +01:00
Nils Schneider
8c0188a4f6
gluon-autoupdater: Randomize mirror order
...
This way we have a kind of load balancing among the mirrors.
2014-01-21 13:20:50 +01:00
Nils Schneider
e91e3f0a21
gluon-autoupdater: add more models to README
...
This adds a list of known models to the readme.
2014-01-21 04:45:56 +01:00
Matthias Schiffer
0ea24a57a3
gluon-autoupdater: allow configuring the branch name independently of the UCI config section name
2014-01-21 00:29:55 +01:00
Matthias Schiffer
5706659b75
gluon-autoupdater: adjust example config for mirror support
2014-01-21 00:10:00 +01:00
Daniel Ehlers
036f573ae7
gluon-autoupdater: Enable list of mirrors for manifest and firmware.
...
Instead of a single url this patch allows to have a list of urls. So in case
of network instability a router can still reach local mesh-cloud server to pull
a update from. In this stage the autoupdater simply tries every mirror until
one passes all tests.
2014-01-20 23:31:15 +01:00
Daniel Ehlers
7f3e2ec201
gluon-autoupdater: Less global variables.
...
This also removes the need for the cleanup function. Instead the cleanup
code is moved in place.
2014-01-20 23:31:15 +01:00
Daniel Ehlers
39052fd0b7
gluon-autoupdater: Refactor code.
...
Move building blocks of the update into seperate functions.
2014-01-20 13:26:58 +01:00
Matthias Schiffer
56fc4fe7d0
Merge gluon-release into gluon-core
2014-01-20 01:59:10 +01:00
Matthias Schiffer
ac48e63c4a
gluon-autoupdater: no need to provide a default config just to delete it in the initial script
2014-01-20 00:06:55 +01:00
Nils Schneider
6d0234a813
gluon-autoupdater: typo corrected
2014-01-19 23:19:55 +01:00
Jan-Philipp Litza
5cad7dba41
gluon-autoupdater: get random number from urandom
...
The approach with awk's rand() wasn't really random between across
devices: When srand() was called without arguments, time() was used as
seed, which of course is the same on all devices when the script is
called via cron at HH:00:00.
This patch instead uses /dev/urandom as source of random (we don't need
cryptographically strong random numbers, so urandom is just fine) but
still uses awk for the comparison as busybox's ash cannot deal with
floats in $(())
2014-01-19 22:36:49 +01:00
Jan-Philipp Litza
1a00f672fe
autoupdater: Use awk instead of grep+head+tail to split manifest
2014-01-17 16:09:34 +01:00
Nils Schneider
137a311e1e
gluon-autoupdater: strip trailing - from model
2014-01-13 12:45:55 +01:00
Matthias Schiffer
2f9b06e825
gluon-autoupdater: use the new get_model function
2014-01-12 21:40:19 +01:00
Nils Schneider
877e1acd83
gluon-autoupdater: improve manifest.sample
...
Makes manifest.sample use the model instead of the board name as that is
what the script actually expects. Also, a sample signature is added.
2014-01-12 21:18:27 +01:00
Nils Schneider
d101e2d6af
gluon-autoupdater: remove dead code
...
Recently the autoupdater contained a case statement to distinguish
between TP-Link WDR3600 and TP-Link WDR4300. This was left over from
previous development versions of autoupdater that relied on the board
name instead of the model. It is thus no longer needed and be removed
safely.
2014-01-12 21:18:27 +01:00
Matthias Schiffer
aebe590081
Make package version depend on the site config version where necessary
2014-01-04 09:19:13 +01:00
Nils Schneider
9e05fb9bc2
autoupdater: fix initial upgrade script
2013-11-11 11:45:12 +01:00
Nils Schneider
f509a995ed
gluon-location is a dependency of config-mode, not autoupdater
2013-10-02 15:00:07 +02:00
Nils Schneider
edcc573976
gluon-autoupdater: new branch specification
...
It is now possible to specific multiple branches like this:
config branch stable
option url ...
list pubkey ...
...
config branch testing
...
and select one in autoupdater.settings:
config autoupdater settings
option branch "stable"
2013-10-02 13:33:47 +02:00
Nils Schneider
5e4f29304b
gluon-autoupdater: rename script to autoupdater (was autoupdate)
2013-10-02 13:18:48 +02:00
Nils Schneider
ace75d4528
gluon-autoupdater: read config from site.conf
2013-09-30 23:31:35 +02:00
Nils Schneider
f25b5157e9
gluon-autoupdater: read version from /lib/gluon/release
2013-09-30 17:12:57 +02:00
Nils Schneider
613d775f9f
autoupdater: enable by default
2013-09-30 01:07:31 +02:00
Nils Schneider
d747efc4ee
autoupdater: fix Makefile
2013-09-30 00:12:45 +02:00
Nils Schneider
dfa2ec153e
autoupdater: simple autoupdater updated to use gluon-cron
2013-09-29 22:38:12 +02:00