Commit Graph

15 Commits (93601d647f69c49a2520d7bccec6f09764962d7e)

Author SHA1 Message Date
Mathias Kresin c4ac02ffca treewide: remove obsolete sysupgrade watchdog kill
The watchdog kill command was meant for busybox watchdog. Busybox watchdog
was replaced by the procd watchdog mid 2013 with commit df7ce9301a
("busybox: disable the watchdog utility by default"), which makes the kill
command obsolete since quite some time.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years ago
Mathias Kresin ac3e05c5d7 treewide: populate boardname and model earlier
For targets using the generic board detection and board specific
settings in diag.sh, the board name is still unset at the time the
set_state() provided by diag.sh is called by 10_indicate_preinit.

Change the execution order to ensure the boardname is populated before
required the first time. Do the target specific board detection as
early as possible, directly followed by the generic one to allow a
seamless switch to the generic function for populating /tmp/sysinfo/.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years ago
John Crispin f933a741a9 target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
ARGC is a 'C-ism', but not known/valid in shell-syntax - insert the correct
var $# (=number of args) here. under normal conditions this had no impact,
but we should at least correct it. the error was observable like this:

root@box:~ [ -e "/etc/functions.sh" ] && . /etc/functions.sh
root@box:~ [ -e "/lib/functions.sh" ] && . /lib/functions.sh
root@box:~ . /lib/upgrade/platform.sh
root@box:~ . /lib/upgrade/common.sh
root@box:~ platform_check_image /tmp/myfirmware.bin
ash: bad number
root@box:~ echo $?
0

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 40915
10 years ago
John Crispin 67f5f188b1 base-files: input/button drivers get loaded before preinit by procd
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37000
11 years ago
Travis Kemen e9fdc5c981 sysupgrade works on the wp54
SVN-Revision: 26257
13 years ago
Florian Fainelli 370e1f64de add support for generic eb214a, thanks cezary (#7027)
SVN-Revision: 22275
14 years ago
Daniel Dickinson abb91e135f adm5120: Added preinit script to set vars based on cpuinfo during preinit main; This fixes a bug in which the per-board vars were not set due to cpuinfo not being mounted when the adm5120.sh was run
SVN-Revision: 21633
14 years ago
Daniel Dickinson 50a5ef1200 adm5120: Fixed name of preinit_iface scriptlet
SVN-Revision: 21632
14 years ago
Felix Fietkau 0e84ed29ea preinit: fix mixup between led and reset button enable on some platforms (thx, cshore)
SVN-Revision: 19370
15 years ago
Felix Fietkau 56bc02a305 add preinit modularization work by Daniel Dickinson (cshore)
SVN-Revision: 19331
15 years ago
Gabor Juhos d256f20adc adm5120: improve sysupgrade support
SVN-Revision: 19016
15 years ago
Gabor Juhos 87d1ab25af adm5120: fix board detection
SVN-Revision: 19015
15 years ago
Felix Fietkau 34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
15 years ago
Felix Fietkau 71b68efe91 sysupgrade for adm5120
Sysupgrade adapted from the bcm47xx one.

Add a hook to disable watchdog before upgrading.

Signed-off-by: Frédéric Moulins <ffrrrr@gmail.com>

SVN-Revision: 12694
16 years ago
Gabor Juhos 438dfe5c6f get rid of per-profile base-files
SVN-Revision: 9069
17 years ago