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
11 years ago
Felix Fietkau
b95bdc8ab5
kernel/base-files: clean up old code related to refreshing mtd partitions, it is no longer used anywhere
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37282
12 years ago
Jo-Philipp Wich
f600ec5b3b
x86: allow both old and new grub signatures in sysupgrade
...
SVN-Revision: 33898
12 years ago
Felix Fietkau
95e642632a
x86: correct image magic for grub2 images
...
Sysupgrade broke on x86 when grub2 superceded grub. This patch
corrects tha magic_word to be expected in grub2 combined images.
Signed-off-by: Russell Senior <russell@personaltelco.net>
SVN-Revision: 33890
12 years ago
Vasilis Tsiligiannis
1978c07539
Fix sysupgrade for squashfs, jffs2 and ext4 images
...
* use 'fsync' with 'dd' for image writing
* save config to boot partition
SVN-Revision: 32465
13 years ago
Nicolas Thill
1fc7da0306
sysupgrade: fix typo in platform_do_upgrade() on x86 ( closes : #7068 ), thanks to acinonyx
...
SVN-Revision: 20703
15 years ago
Florian Fainelli
e1a4f69cb5
sysupgrade: Get target device from kernel cmdline, patch from acinonyx
...
SVN-Revision: 20538
15 years ago
Jo-Philipp Wich
817d27bcdc
sysupgrade: Dump image to sda device instead of hda (patch by Acinonyx)
...
SVN-Revision: 20514
15 years ago
Jo-Philipp Wich
5231811851
sysupgrade-ext2 sync before writing image, not after Sysupgrade for ext2 currently flushes the filesystem buffers after an image is written to the disk. This should happen before the image is written.
...
SVN-Revision: 16867
16 years ago
Felix Fietkau
065306a9a8
fix small logic error in x86 sysupgrade script, which prevented upgrades from jffs2 to squashfs ( #3321 )
...
SVN-Revision: 12672
16 years ago
Felix Fietkau
f47a4a58c5
fix sysupgrade support for brcm-2.4 and brcm47xx make mtd refresh based config append optional (leave enabled on x86)
...
SVN-Revision: 12657
16 years ago
Travis Kemen
7346ef83e1
fix sysupgrade endian issues
...
SVN-Revision: 11900
17 years ago
Gabor Juhos
438dfe5c6f
get rid of per-profile base-files
...
SVN-Revision: 9069
17 years ago
Felix Fietkau
56231056ea
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.
...
SVN-Revision: 8653
17 years ago
Felix Fietkau
1e38527a52
add sysupgrade script for config preserving system upgrades. only implemented for x86-2.6 at the moment, but can be ported to other platforms easily
...
SVN-Revision: 8456
17 years ago