History log of /openwrt/package/base-files/files/etc/profile
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


# 39dd9763 24-Nov-2015 John Crispin <blogic@openwrt.org>

base-files: show hint when JFFS2-partition is full and overlayfs mounted read-only

since r45833 and r45848 the overlayfs is automatically mounted read-only
(and blocks remounts as r/w) when JFFS2 is full. see ticket #19564

because of this normal file deletion is not possible anymore.
if a user logins interactively (e.g. SSH) show a hint for this,
that files must be removed in /overlay/upper/...

v2: fix subject line

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47623 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


# 5faa75e5 16-Sep-2015 John Crispin <blogic@openwrt.org>

base-files: add /etc/profile.d support

OpenWrt should support an optional /etc/profile.d directory like
most other Linux distributions. This allows packages to install
their own scripts into /etc/profile.d/ directory.

The file suffix should make clear, that these scripts
are (sourced) shell-snippets. If the user needs e.g. php or lua,
one must make sure that the interpreter is called.
The reverse failsafe test makes sure, that the effective returncode is 0.

A typcal usecase is the inclusion of private helpers,
special variables or aliases, which at the moment needs
patching the sourcecode and is not well maintainable.
Now the builder can simply add there files.

v1 initial work of Hendrik Lüth <hendrik@linux-nerds.de>
v2 changes regarding RFC (e.g. thomas.langer@lantiq.com)
v3 changes regarding RFC (e.g. mschiffer@universe-factory.net)
v4 keep it simple and mimic OpenWrt style

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

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


# c23daabb 20-Oct-2014 John Crispin <blogic@openwrt.org>

failsafe-mode: print short help on commandline

[base-files] failsafe-mode: print short help on commandline

Like mentioned in ticket https://dev.openwrt.org/ticket/11911
this should make the IRC much quieter. Failsafe is somehow
special and even experienced users are helpless, because they
are not used to this seldom situation. Also: likely you have
no internet access in this mode, so you cannot use the wiki.

a failsafe-session now looks like this:
first we see from 'package/base-files/files/bin/login.sh' the hint:

=== IMPORTANT ============================
Use 'passwd' to set your login password
this will disable telnet and enable SSH
------------------------------------------

after this the /etc/banner ("OpenWrt - wireless freedom")
and then the new text:

================= FAILSAFE MODE active ================
special commands:
* firstboot reset settings to factory defaults
* mount_root mount root-partition with config files

after mount_root:
* passwd change root's password
* /etc/config directory with config files

for more help see:
http://wiki.openwrt.org/doc/howto/generic.failsafe
=======================================================

this supersedes the old patches:
http://patchwork.openwrt.org/patch/3337/
http://patchwork.openwrt.org/patch/3553/

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

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


# 64b1c42d 10-Jun-2013 John Crispin <blogic@openwrt.org>

base-files: change PATH order

This allows packages to override busybox applets by placing the new
binaries in /usr/{sbin,bin}

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

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


# 11408fde 08-Aug-2012 Florian Fainelli <florian@openwrt.org>

[package] base-files: check for ldd presence and executability (#11991)

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


# 6800dfef 27-Jul-2012 Florian Fainelli <florian@openwrt.org>

[package] base-files: fix detection of standalone ldd

When standalone ldd is selected in config the binary is installed in /usr/bin/ldd.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

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


# d652a4b3 12-Aug-2011 Jo-Philipp Wich <jow@openwrt.org>

[package] base-files: fix arp() procedure to properly detect /usr/bin/arp


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


# 744772b6 06-Jan-2009 Felix Fietkau <nbd@openwrt.org>

fix $HOME in /etc/profile (#4424)

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


# 2c41016d 19-Sep-2007 John Crispin <blogic@openwrt.org>

made HOME=/root global instead of x86 specific

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


# eeaf486d 14-May-2007 Florian Fainelli <florian@openwrt.org>

Prefer real executables when available (#1296)


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


# 67481e68 10-May-2007 Mike Baker <mbm@openwrt.org>

add K* scripts to be run at shutdown


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7163 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


# 29f0b448 03-Apr-2007 Florian Fainelli <florian@openwrt.org>

Add ldd and ldconfig support, template packages derived from gcc and uclibc


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


# cf0894f2 24-Mar-2007 Florian Fainelli <florian@openwrt.org>

Use MiBSD ksh if installed (#1470)


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


# fbef19a7 22-Nov-2006 Felix Fietkau <nbd@openwrt.org>

rename default/ to files/

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