openwrt_archive/package/base-files/files/etc
John Crispin 90afa234c1 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>

Backport of r46965

SVN-Revision: 48862
2016-03-01 08:15:04 +00:00
..
config network: Unbind DHCPv6 from underlying interfaces 2014-10-08 13:08:05 +00:00
hotplug.d/net base-files: drop 2 pointless hotplug trigger stubs 2013-06-21 16:53:51 +00:00
init.d CC: base-files: fix /tmp/.jail permissions 2015-07-27 11:49:43 +00:00
opkg/keys CC: base-files: add missing public key 2015-11-13 15:55:37 +00:00
rc.button base-files: buttons: make power script return 0 2015-08-12 00:58:41 +00:00
uci-defaults base-files: remove a 'not found' error message during system boot 2014-10-03 10:56:43 +00:00
banner BB is branched, get ready for Chaos Calmer 2014-07-29 08:24:57 +00:00
banner.failsafe failsafe-mode: print short help on commandline 2014-10-20 06:29:05 +00:00
device_info base-files: properly escape strings for version info 2014-07-29 13:30:23 +00:00
diag.sh [package] base-files: make diag.sh stub working in bash 2009-04-30 21:00:57 +00:00
group base-files: add an ftp group as well 2011-03-13 19:04:32 +00:00
hosts base_files: Remove . from end of localhost entry 2010-08-06 08:00:40 +00:00
inittab [base-files] make basefiles aware of procd 2013-03-13 18:11:19 +00:00
openwrt_release base-files: properly escape strings for version info 2014-07-29 13:30:23 +00:00
openwrt_version [buildroot] include, base-files, opkg: introduce version configuration to override the embedded version info of generated images 2012-04-12 17:31:16 +00:00
passwd [package] base-files: prime root password with "x" to notify programs that there is a shadow record, fix /bin/login.sh password detection accordingly. 2011-11-14 19:02:01 +00:00
preinit CC: base-files: sanitize and unify $PATH 2016-01-14 14:27:20 +00:00
profile base-files: add /etc/profile.d support 2016-03-01 08:15:04 +00:00
protocols rename default/ to files/ 2006-11-22 23:30:57 +00:00
rc.common base-files: add a init.d option that will start the syscall tracer 2015-03-26 10:58:17 +00:00
rc.local [package] base-files: introduce a ready-to-use /etc/rc.local to let users run custom commands on init without creating custom init scripts 2009-09-11 21:35:03 +00:00
services Add munin to /etc/services 2012-03-18 19:41:57 +00:00
shadow [base-files]: the root password should be empty for real, like before 2014-02-21 10:39:14 +00:00
shells rename default/ to files/ 2006-11-22 23:30:57 +00:00
sysctl.conf kernel: remove the netfilter optimization that skips the filter table, it has caused too many issues 2015-03-17 17:14:48 +00:00
sysupgrade.conf [package] base-files: 2010-10-05 19:24:12 +00:00