Commit Graph

6 Commits (fc822a4370f534ad83de092a2a9ababa94ebee8b)

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
Jo-Philipp Wich 44810702d2 fix failsafe ip deconfig on AR23xx devices without ADM or Marvell switch
SVN-Revision: 20733
2010-04-06 22:46:15 +00:00
Jo-Philipp Wich 50d6e449b3 preinit: use grep -q where applicable
SVN-Revision: 19482
2010-02-01 00:34:51 +00:00
Jo-Philipp Wich fb29bd369a fix syntax error in preinit hook (#6610)
SVN-Revision: 19461
2010-01-31 16:10:42 +00:00
Felix Fietkau 56bc02a305 add preinit modularization work by Daniel Dickinson (cshore)
SVN-Revision: 19331
2010-01-25 17:11:17 +00:00
Jo-Philipp Wich f20af38322 Implement a preliminary combined image format. - add sysupgrade support for combined images by providing a platform.sh backend - use the mtd fis partition table rewrite facility to resize partitions on demand - generate generic combined images for the atheros target
SVN-Revision: 17668
2009-09-22 01:09:04 +00:00