History log of /openwrt/package/base-files/files/etc/preinit
Revision Date Author Comments
# 93f7ca2b 08-Feb-2016 Jo-Philipp Wich <jow@openwrt.org>

base-files: honor CONFIG_TARGET_INIT_PATH

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48678 3c298f89-4303-0410-b956-a3cf2f4a3e73


# d793f4b7 02-Oct-2015 Steven Barth <steven@midlink.org>

base-files: sanitize and unify $PATH

Previously init and hotplug paths were different from console.

Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47080 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 8ce376a5 07-Apr-2014 Felix Fietkau <nbd@openwrt.org>

/lib/functions.sh: move rarely used mtd and macaddr related functions to /lib/functions/system.sh

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40411 3c298f89-4303-0410-b956-a3cf2f4a3e73


# fbddef3d 07-Apr-2014 Felix Fietkau <nbd@openwrt.org>

/lib/functions.sh: move preinit related functions to /lib/functions/preinit.sh

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40404 3c298f89-4303-0410-b956-a3cf2f4a3e73


# d723a387 09-Dec-2013 Luka Perkov <luka@openwrt.org>

[package] base-files: fix whitespaces

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39006 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 47d1577f 13-Mar-2013 John Crispin <blogic@openwrt.org>

[base-files] make basefiles aware of procd

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36003 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 4f4f7ca1 19-Dec-2012 Mirko Vogt <mirko@openwrt.org>

merge /lib/functions/boot.sh and /lib/functions.sh

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34794 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 75a299db 05-Jun-2012 Jo-Philipp Wich <jow@openwrt.org>

[package] /etc/functions.sh => /lib/functions.sh

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32062 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 79a8d303 06-Jul-2011 Daniel Dickinson <daniel@cshore.neomailbox.net>

[package] base-files: preinit: Fixed sourcing of diag.sh in /etc/preinit. 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


# ce5a30ba 23-Sep-2010 Daniel Dickinson <daniel@cshore.neomailbox.net>

[package] base/block-extroot, base/block-mount: Modified preinit and 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


# a13ab136 10-Mar-2010 Nicolas Thill <nico@openwrt.org>

[package] base-files: fix preinit code typos

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


# fd4ddfd2 25-Jan-2010 Felix Fietkau <nbd@openwrt.org>

add preinit modularization work by Daniel Dickinson (cshore)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19331 3c298f89-4303-0410-b956-a3cf2f4a3e73


# ca14804c 05-Sep-2009 Gabor Juhos <juhosg@openwrt.org>

package/base-files: set state to 'preinit' before preinit.arch is used, and set state to 'failsafe' when entering failsafe mode

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17517 3c298f89-4303-0410-b956-a3cf2f4a3e73


# aaf8904d 02-Sep-2009 Felix Fietkau <nbd@openwrt.org>

preinit: fix failsafe mode through ctrl+c on devices that do not provide a preinit.arch file

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17470 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 542045ef 24-Aug-2009 Geoff Levand <geoff@infradead.org>

udev: Update udev package from udev-106 to udev-142

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


# 02b789b1 28-May-2009 Gabor Juhos <juhosg@openwrt.org>

[package] base-files: update command line for the new hotplug2

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16154 3c298f89-4303-0410-b956-a3cf2f4a3e73


# af309feb 04-Apr-2009 Felix Fietkau <nbd@openwrt.org>

rename our /bin/login script to /bin/login.sh to avoid collisions with busybox - we always use -l on telnetd anyway

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15097 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 92fbe74b 04-Apr-2009 Felix Fietkau <nbd@openwrt.org>

fix failsafe mode

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15096 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 26ed7658 14-Aug-2008 Florian Fainelli <florian@openwrt.org>

Fix negative calculation of the tmpfs for devices with few RAM (#3557)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12315 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 7f8329b8 07-Aug-2008 Mike Baker <mbm@openwrt.org>

allow ctrl-c to trigger preinit


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12231 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 930674d2 31-Jul-2008 Felix Fietkau <nbd@openwrt.org>

use the same hotplug2 parameters for initramfs and regular


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12059 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 73ba73fc 31-Jul-2008 Felix Fietkau <nbd@openwrt.org>

move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it works for initramfs as well


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12058 3c298f89-4303-0410-b956-a3cf2f4a3e73


# e4f9f869 23-Apr-2008 Felix Fietkau <nbd@openwrt.org>

initramfs: start one hotplug2 for coldplugging and one for handling events between coldplug and end of /init


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10930 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 00a43b0a 23-Apr-2008 Felix Fietkau <nbd@openwrt.org>

use the right hotplug2 invocation for initramfs


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10928 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 118bef8a 23-Apr-2008 Gabor Juhos <juhosg@openwrt.org>

[package] base-files: fix a typo

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10927 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 44a3a83b 22-Apr-2008 Felix Fietkau <nbd@openwrt.org>

This patch re-adds the udev and hotplug2 initialization fixes originally
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


# 53a34b19 21-Apr-2008 Matteo Croce <matteo@openwrt.org>

assign names to filesystems when mounting virtual ones (closes #3340)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10903 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 7904db70 19-Apr-2008 Felix Fietkau <nbd@openwrt.org>

remove some redundant code


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10870 3c298f89-4303-0410-b956-a3cf2f4a3e73


# fe9d7531 21-Aug-2007 Felix Fietkau <nbd@openwrt.org>

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8456 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 5268bc8e 03-Jul-2007 Felix Fietkau <nbd@openwrt.org>

add failsafe support for atheros-2.6 (#1501) - only works with ar5315+ at the moment

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7870 3c298f89-4303-0410-b956-a3cf2f4a3e73


# a2a0717b 30-Jun-2007 Felix Fietkau <nbd@openwrt.org>

move parts of the failsafe code to the generic base-files - will be used on 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


# c2090601 25-Jun-2007 Felix Fietkau <nbd@openwrt.org>

fix failsafe on broadcom, send netlink events in diag when running linux 2.6

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7722 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 6470efd9 30-May-2007 Mike Baker <mbm@openwrt.org>

mount_root should only mount the root


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7418 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 36fbb96b 13-May-2007 Mike Baker <mbm@openwrt.org>

/proc needs to be mounted before preinit.arch for failsafe


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7220 3c298f89-4303-0410-b956-a3cf2f4a3e73


# ff31b9d4 13-May-2007 Florian Fainelli <florian@openwrt.org>

Fix set_state preinit stuff


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7200 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 09cdbc40 10-May-2007 Mike Baker <mbm@openwrt.org>

unified preinit environment


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7173 3c298f89-4303-0410-b956-a3cf2f4a3e73


# de0eebbe 30-Apr-2007 Imre Kaloz <kaloz@openwrt.org>

move the last change to the right place

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7069 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 0679feaa 30-Apr-2007 Imre Kaloz <kaloz@openwrt.org>

set $HOME to /tmp on bootup

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7068 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 95d20db0 03-Mar-2007 Felix Fietkau <nbd@openwrt.org>

add failsafe support for x86-2.6 and fix mdev support for platforms using /etc/preinit

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6481 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 18de319d 01-Mar-2007 Felix Fietkau <nbd@openwrt.org>

make squashfs overlay support more generic and integrate it for x86-2.6

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6450 3c298f89-4303-0410-b956-a3cf2f4a3e73