Commit Graph

6 Commits (4348822245705290031f879d45078a4fcc09ab2c)

Author SHA1 Message Date
John Crispin 38c81b2552 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40915 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 12:43:22 +00:00
Jo-Philipp Wich d328f8c6b6 [atheros] fix failsafe ip deconfig on AR23xx devices without ADM or Marvell switch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20733 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-06 22:46:15 +00:00
Jo-Philipp Wich 44fa2fdd96 [atheros] preinit: use grep -q where applicable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19482 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-01 00:34:51 +00:00
Jo-Philipp Wich 79d995936f [atheros] fix syntax error in preinit hook (#6610)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19461 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-31 16:10:42 +00:00
Felix Fietkau fd4ddfd240 add preinit modularization work by Daniel Dickinson (cshore)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19331 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-25 17:11:17 +00:00
Jo-Philipp Wich 92bc60d8f3 [atheros] 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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17668 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-22 01:09:04 +00:00