aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/base-files
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40915 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39996 3c298f89-4303-0410-b956-a3cf2f4a3e73
* x86: change /dev/console to tty to fix job controlJohn Crispin2013-08-041-0/+4
| | | | | | | | | | | | Job control is turned off because it cannot obtain controlling terminal on /dev/console, so it is impossible to do any job control operation behind real x86 device (keyboard+monitor or virtualized). This patch switches /dev/console to tty devices for ash on x86 generic target. Signed-off-by: Jiri Slachta <slachta@cesnet.cz> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37693 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37282 3c298f89-4303-0410-b956-a3cf2f4a3e73
* preinit: move cmdline failsafe= handling ot the generic codeJohn Crispin2013-04-251-13/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36430 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Change default IPv6 config to enable DHCPv6-PDSteven Barth2013-04-221-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36384 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Adapt default network configuration for IPv6Steven Barth2013-04-091-0/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36278 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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'. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34792 3c298f89-4303-0410-b956-a3cf2f4a3e73
* x86: allow both old and new grub signatures in sysupgradeJo-Philipp Wich2012-10-231-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33898 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33890 3c298f89-4303-0410-b956-a3cf2f4a3e73
* x86: add grub2 iso supportFelix Fietkau2012-10-071-0/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33639 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [x86] 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32465 3c298f89-4303-0410-b956-a3cf2f4a3e73
* x86/soekris: Add defconfig for soekris net4801 and net4826Felix Fietkau2011-01-263-0/+48
| | | | | | | | | Add default config file for net4801 and 4826 and initial script to copy config file like it is done for other platforms. Patch from: kentarou matsuyama <matsuyama@thinktube.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25103 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25102 3c298f89-4303-0410-b956-a3cf2f4a3e73
* sysupgrade: fix typo in platform_do_upgrade() on x86 (closes: #7068), thanks ↵Nicolas Thill2010-04-041-1/+1
| | | | | | to acinonyx git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20703 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [x86] sysupgrade: Get target device from kernel cmdline, patch from acinonyxFlorian Fainelli2010-03-281-1/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20538 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [x86] sysupgrade: Dump image to sda device instead of hda (patch by Acinonyx)Jo-Philipp Wich2010-03-271-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20514 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [x86] base-files: remove redundant "Press " when writing enter failsafe messageJo-Philipp Wich2010-03-231-1/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20393 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [x86] preinit: use grep -q where applicableJo-Philipp Wich2010-02-011-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19479 3c298f89-4303-0410-b956-a3cf2f4a3e73
* preinit: Remove Ctrl-C prompt...impossible on /dev/console (patch by cshore)Felix Fietkau2010-01-281-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19367 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add preinit modularization work by Daniel Dickinson (cshore)Felix Fietkau2010-01-253-2/+22
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19331 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [PATCH] sysupgrade-ext2 sync before writing image, not afterJo-Philipp Wich2009-07-161-1/+1
| | | | | | | | | Sysupgrade for ext2 currently flushes the filesystem buffers after an image is written to the disk. This should happen before the image is written. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16867 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix small logic error in x86 sysupgrade script, which prevented upgrades ↵Felix Fietkau2008-09-231-1/+1
| | | | | | from jffs2 to squashfs (#3321) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12672 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix sysupgrade support for brcm-2.4 and brcm47xxFelix Fietkau2008-09-231-0/+2
| | | | | | make mtd refresh based config append optional (leave enabled on x86) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12657 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix sysupgrade endian issuesTravis Kemen2008-07-221-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11900 3c298f89-4303-0410-b956-a3cf2f4a3e73
* silence a bogus preinit messageFelix Fietkau2007-10-241-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9429 3c298f89-4303-0410-b956-a3cf2f4a3e73
* get rid of per-profile base-filesGabor Juhos2007-09-292-0/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9069 3c298f89-4303-0410-b956-a3cf2f4a3e73
* made HOME=/root global instead of x86 specificJohn Crispin2007-09-192-16/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8845 3c298f89-4303-0410-b956-a3cf2f4a3e73
* root users folder is now in the fs and no longer /tmpJohn Crispin2007-09-192-0/+16
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8844 3c298f89-4303-0410-b956-a3cf2f4a3e73
* strip the kernel version suffix from target directories, except for brcm-2.4 ↵Felix Fietkau2007-09-062-0/+29
(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