Commit Graph

6 Commits (95544f33dd204abe78dac54d4ac62fc19a58b980)

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
10 years ago
Jo-Philipp Wich 44810702d2 fix failsafe ip deconfig on AR23xx devices without ADM or Marvell switch
SVN-Revision: 20733
14 years ago
Jo-Philipp Wich 50d6e449b3 preinit: use grep -q where applicable
SVN-Revision: 19482
15 years ago
Jo-Philipp Wich fb29bd369a fix syntax error in preinit hook (#6610)
SVN-Revision: 19461
15 years ago
Felix Fietkau 56bc02a305 add preinit modularization work by Daniel Dickinson (cshore)
SVN-Revision: 19331
15 years ago
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
15 years ago