summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/preinit
Commit message (Collapse)AuthorAgeFilesLines
* merge /lib/functions/boot.sh and /lib/functions.shmirko2012-12-191-1/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34794 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] /etc/functions.sh => /lib/functions.shjow2012-06-051-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32062 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: preinit: Fixed sourcing of diag.sh in /etc/preinit. ↵cshore2011-07-071-1/+0
| | | | | | This caused errors due to frequent use of /proc/cpuinfo to determine board name to pick led layout. Now diag.sh (which only defines set_state and any helper functions) is sourced by a proper preinit function during preinit_main, which is after /proc has been brought up, unlike in /etc/preinit git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27501 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base/block-extroot, base/block-mount: Modified preinit and ↵cshore2010-09-231-6/+6
| | | | | | | | | | | | | | | | | | block-extroot and block-mount so that use of block-mount and block-extroot do not require that block-extroot, block-mount, nor the kernel modules they depend, on are required to included in the image. That is block-extroot and dependencies may now be installed as modules onto the jffs2 part of a squashfs system and it will work. In addition packages which are installed into the jffs2 of a squashfs system may now affect preinit, so long as they do not require execution of commands that occur before the merging of the jffs2 and built-in (squashfs) preinit scripts is done. Thanks jow for the preinit merge stuff! git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23110 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: fix preinit code typosnico2010-03-101-1/+1
| | | | | | | | | Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl> Acked-by: Daniel Dickinson <cshore@csolve.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20124 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add preinit modularization work by Daniel Dickinson (cshore)nbd2010-01-251-82/+29
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19331 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: set state to 'preinit' before preinit.arch is used, and ↵juhosg2009-09-051-2/+3
| | | | | | set state to 'failsafe' when entering failsafe mode git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17517 3c298f89-4303-0410-b956-a3cf2f4a3e73
* preinit: fix failsafe mode through ctrl+c on devices that do not provide a ↵nbd2009-09-021-1/+5
| | | | | | preinit.arch file git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17470 3c298f89-4303-0410-b956-a3cf2f4a3e73
* udev: Update udev package from udev-106 to udev-142geoff2009-08-241-4/+8
| | | | | | | | | | | | | | | | | | | | | Update the init scripts have to use udevadm where appropriate. The udev package no longer provides separate udev utilities like udevtrigger and udevsettle. These have been incorporated into the udev admin program udevadm. Replace the udevextras sub package with config options to the udev package. Update the preinit script to check for '/lib/udev/devices', and copy it to '/dev/ if it is found, then to conditionaly setup /dev the old way with mknod etc. Udev now recommends using the directory '/lib/udev/devices' to initialize the '/dev' directory at startup. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17378 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: update command line for the new hotplug2juhosg2009-05-281-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16154 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rename our /bin/login script to /bin/login.sh to avoid collisions with ↵nbd2009-04-041-1/+1
| | | | | | busybox - we always use -l on telnetd anyway git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15097 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix failsafe modenbd2009-04-041-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15096 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Fix negative calculation of the tmpfs for devices with few RAM (#3557)florian2008-08-141-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12315 3c298f89-4303-0410-b956-a3cf2f4a3e73
* allow ctrl-c to trigger preinitmbm2008-08-071-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12231 3c298f89-4303-0410-b956-a3cf2f4a3e73
* use the same hotplug2 parameters for initramfs and regularnbd2008-08-011-7/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12059 3c298f89-4303-0410-b956-a3cf2f4a3e73
* move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it ↵nbd2008-08-011-1/+0
| | | | | | works for initramfs as well git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12058 3c298f89-4303-0410-b956-a3cf2f4a3e73
* initramfs: start one hotplug2 for coldplugging and one for handling events ↵nbd2008-04-231-1/+2
| | | | | | between coldplug and end of /init git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10930 3c298f89-4303-0410-b956-a3cf2f4a3e73
* use the right hotplug2 invocation for initramfsnbd2008-04-231-2/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10928 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: fix a typojuhosg2008-04-231-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10927 3c298f89-4303-0410-b956-a3cf2f4a3e73
* This patch re-adds the udev and hotplug2 initialization fixes originallynbd2008-04-221-3/+12
| | | | | | | | | | | present in /init but was removed when some code was moved from /init to /etc/preinit in rev 10870. This adds udev initialization and only handles hotplug2 initialization when hotplug2 is present. Signed-off-by: Yuji Mano <yuji.mano@am.sony.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10912 3c298f89-4303-0410-b956-a3cf2f4a3e73
* assign names to filesystems when mounting virtual ones (closes #3340)matteo2008-04-211-5/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10903 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove some redundant codenbd2008-04-201-12/+15
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10870 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add sysupgrade script for config preserving system upgrades. only ↵nbd2007-08-211-0/+8
| | | | | | implemented for x86-2.6 at the moment, but can be ported to other platforms easily git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8456 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add failsafe support for atheros-2.6 (#1501) - only works with ar5315+ at ↵nbd2007-07-041-0/+9
| | | | | | the moment git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7870 3c298f89-4303-0410-b956-a3cf2f4a3e73
* move parts of the failsafe code to the generic base-files - will be used on ↵nbd2007-06-301-1/+1
| | | | | | atheros as well as soon as i've added support for it git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7810 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix failsafe on broadcom, send netlink events in diag when running linux 2.6nbd2007-06-251-14/+12
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7722 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mount_root should only mount the rootmbm2007-05-311-5/+42
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7418 3c298f89-4303-0410-b956-a3cf2f4a3e73
* /proc needs to be mounted before preinit.arch for failsafembm2007-05-141-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7220 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Fix set_state preinit stuffflorian2007-05-131-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7200 3c298f89-4303-0410-b956-a3cf2f4a3e73
* unified preinit environmentmbm2007-05-101-0/+14
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7173 3c298f89-4303-0410-b956-a3cf2f4a3e73
* move the last change to the right placekaloz2007-04-301-1/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7069 3c298f89-4303-0410-b956-a3cf2f4a3e73
* set $HOME to /tmp on bootupkaloz2007-04-301-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7068 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add failsafe support for x86-2.6 and fix mdev support for platforms using ↵nbd2007-03-031-1/+2
| | | | | | /etc/preinit git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6481 3c298f89-4303-0410-b956-a3cf2f4a3e73
* make squashfs overlay support more generic and integrate it for x86-2.6nbd2007-03-021-0/+5
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6450 3c298f89-4303-0410-b956-a3cf2f4a3e73