aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/base-files/lib
Commit message (Collapse)AuthorAgeFilesLines
* target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGCJohn Crispin2014-06-021-1/+1
| | | | | | | | | | | | | | | | | | | 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
* x86: fix sysupgradeFelix Fietkau2014-03-211-1/+1
| | | | | | | | | | | | | | | | | | | Function move_config should be called after or during preinit_mount_root hook in do_mount_root function. At this state sysupgrade.tgz is not in its place during that time when do_mount_root is called. Function move_config is called later so the sysupgrade.tgz stays in root directory to the second restart when it is unpacked properly. This patch adds move_config function to preinit_mount_root hook instead of preinit_main and changes the filename of script to be called before 80_mount_root is called. It will prepare the sysupgrade archive for do_mount_root within preinit_mount_root hook. This patch solves ticket #15042 and #14088. Signed-off-by: Jiri Slachta <slachta@cesnet.cz> SVN-Revision: 39996
* kernel/base-files: clean up old code related to refreshing mtd partitions, ↵Felix Fietkau2013-07-141-6/+0
| | | | | | | | it is no longer used anywhere Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37282
* preinit: move cmdline failsafe= handling ot the generic codeJohn Crispin2013-04-251-13/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36430
* Do not overload mount-call - trying to reduce confusionMirko Vogt2012-12-191-1/+1
| | | | | | | | | | | The behaviour of calling 'mount' differed depending on whether it called the busybox-mount, the mount of util-linux, the mount defined in /lib/functions.sh and /lib/functions/boot.sh /etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh, both re-defining 'mount'. SVN-Revision: 34792
* x86: allow both old and new grub signatures in sysupgradeJo-Philipp Wich2012-10-231-1/+1
| | | | SVN-Revision: 33898
* x86: correct image magic for grub2 imagesFelix Fietkau2012-10-221-1/+1
| | | | | | | | | 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
* x86: add grub2 iso supportFelix Fietkau2012-10-071-0/+5
| | | | SVN-Revision: 33639
* Fix sysupgrade for squashfs, jffs2 and ext4 imagesVasilis Tsiligiannis2012-06-192-16/+55
| | | | | | | * use 'fsync' with 'dd' for image writing * save config to boot partition SVN-Revision: 32465
* x86/soekris: Add script to detect soekris modelFelix Fietkau2011-01-261-0/+19
| | | | | | | | Add script to detect soekris board of net4801 and net4826. Patch from: kentarou matsuyama <matsuyama@thinktube.com> SVN-Revision: 25102
* sysupgrade: fix typo in platform_do_upgrade() on x86 (closes: #7068), thanks ↵Nicolas Thill2010-04-041-1/+1
| | | | | | to acinonyx SVN-Revision: 20703
* sysupgrade: Get target device from kernel cmdline, patch from acinonyxFlorian Fainelli2010-03-281-1/+5
| | | | SVN-Revision: 20538
* sysupgrade: Dump image to sda device instead of hda (patch by Acinonyx)Jo-Philipp Wich2010-03-271-1/+1
| | | | SVN-Revision: 20514
* base-files: remove redundant "Press " when writing enter failsafe messageJo-Philipp Wich2010-03-231-1/+0
| | | | SVN-Revision: 20393
* preinit: use grep -q where applicableJo-Philipp Wich2010-02-011-1/+1
| | | | SVN-Revision: 19479
* preinit: Remove Ctrl-C prompt...impossible on /dev/console (patch by cshore)Felix Fietkau2010-01-281-1/+1
| | | | SVN-Revision: 19367
* add preinit modularization work by Daniel Dickinson (cshore)Felix Fietkau2010-01-252-0/+22
| | | | SVN-Revision: 19331
* sysupgrade-ext2 sync before writing image, not after Sysupgrade for ext2 ↵Jo-Philipp Wich2009-07-161-1/+1
| | | | | | currently flushes the filesystem buffers after an image is written to the disk. This should happen before the image is written. SVN-Revision: 16867
* fix small logic error in x86 sysupgrade script, which prevented upgrades ↵Felix Fietkau2008-09-231-1/+1
| | | | | | from jffs2 to squashfs (#3321) SVN-Revision: 12672
* fix sysupgrade support for brcm-2.4 and brcm47xx make mtd refresh based ↵Felix Fietkau2008-09-231-0/+2
| | | | | | config append optional (leave enabled on x86) SVN-Revision: 12657
* fix sysupgrade endian issuesTravis Kemen2008-07-221-1/+1
| | | | SVN-Revision: 11900
* get rid of per-profile base-filesGabor Juhos2007-09-291-0/+27
SVN-Revision: 9069