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
d8c155dfc9
all targets: use numerically prefixed uci-defaults file names to better control order of execution
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35217 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-18 12:42:53 +00:00
Mirko Vogt
f1b359fecb
Do not use deprecated path to functions.sh (/etc/functions.sh -> /lib/functions.sh)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34793 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-19 16:07:50 +00:00
John Crispin
bda60588cf
[atheros] Add leds back after migration to sysfs
...
atheros trunk moved to full sysfs gpiolib, but the leds were forgotten.
This restores the wlan led that was missing after switching from backfire
to trunk.
Signed-off-by: Karl Palsson <karlp@remake.is>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32885 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-26 17:06:55 +00:00
Jo-Philipp Wich
d75509fe4d
base-files, target: assign name to system timeserver section, makes it easier to set servers on the cli
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28933 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-10 12:16:41 +00:00
Jo-Philipp Wich
ca5eb9dd8f
add timeserver config to target specific system configs as well
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28750 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-04 12:53:35 +00:00
Jo-Philipp Wich
d2eb5f9c0f
[atheros] renaming of the IP175C switch driver brioke switch detection on the Dir-300 and others, fix it
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22363 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-23 10:39:10 +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
Felix Fietkau
a518f9c09f
adjust switch default configs for the swconfig api change
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19209 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-18 00:38:08 +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
Felix Fietkau
7f5179ddb4
atheros: fix failsafe mode
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17471 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-02 15:14:57 +00:00
Felix Fietkau
4cdbfa1eac
atheros switch support: add missing commit statements
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17391 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-24 22:11:31 +00:00
Felix Fietkau
f73661d081
atheros: do not alter the network vlan config if swconfig is required and missing
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17388 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-24 22:06:56 +00:00
Felix Fietkau
8ec04dd8be
atheros: configure eth1 as wan interface by default, if present
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15473 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-28 23:27:46 +00:00
Felix Fietkau
65d8376aa1
atheros: add default uci configuration for ICPlus IP175C
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15329 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-21 18:48:54 +00:00
Felix Fietkau
f08abee438
atheros: in later kernels, vlan 0 no longer works as expected, switch to (1,2) instead of (0,1) for lan/wan
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14981 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-22 20:19:23 +00:00
Felix Fietkau
ef56ac6247
atheros: fix path in marvell switch phy id detection
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14980 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-22 20:18:58 +00:00
John Crispin
b82dd11b1d
add proper uci/hotplug based button handling on atheros and work around boards, where the gpio release irq does not fire correctly
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12179 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-05 22:17:16 +00:00
Felix Fietkau
f85cb02b81
make use of the marvell switch in the atheros port
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10877 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-20 08:39:16 +00:00
Felix Fietkau
60797bacdd
make use of the adm6996 switch for atheros devices that support it (autodetected at boot time)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10871 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-20 03:24:59 +00:00
Gabor Juhos
9233c3cdb9
get rid of per-profile base-files
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9069 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-29 14:27:54 +00:00
Felix Fietkau
92558d67a4
strip the kernel version suffix from target directories, except for brcm-2.4 (the -2.4 will be included in the board name here). CONFIG_LINUX_<ver>_<board> becomes CONFIG_TARGET_<board>, same for profiles.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8653 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-06 16:27:37 +00:00