Commit graph

13 commits

Author SHA1 Message Date
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
2014-06-02 12:43:22 +00:00
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
2013-06-21 16:53:47 +00:00
Travis Kemen
e9fdc5c981 sysupgrade works on the wp54
SVN-Revision: 26257
2011-03-21 16:52:14 +00:00
Florian Fainelli
370e1f64de add support for generic eb214a, thanks cezary (#7027)
SVN-Revision: 22275
2010-07-18 10:29:58 +00:00
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
2010-05-30 03:20:38 +00:00
Daniel Dickinson
50a5ef1200 adm5120: Fixed name of preinit_iface scriptlet
SVN-Revision: 21632
2010-05-30 03:20:27 +00:00
Felix Fietkau
0e84ed29ea preinit: fix mixup between led and reset button enable on some platforms (thx, cshore)
SVN-Revision: 19370
2010-01-28 19:28:02 +00:00
Felix Fietkau
56bc02a305 add preinit modularization work by Daniel Dickinson (cshore)
SVN-Revision: 19331
2010-01-25 17:11:17 +00:00
Gabor Juhos
d256f20adc adm5120: improve sysupgrade support
SVN-Revision: 19016
2010-01-03 12:14:17 +00:00
Gabor Juhos
87d1ab25af adm5120: fix board detection
SVN-Revision: 19015
2010-01-03 12:14:14 +00:00
Felix Fietkau
34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
2009-04-17 14:09:46 +00:00
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
2008-09-25 11:29:04 +00:00
Gabor Juhos
438dfe5c6f get rid of per-profile base-files
SVN-Revision: 9069
2007-09-29 14:27:54 +00:00