openwrtv3/package/base-files/files
John Crispin ef2f50829d 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>

SVN-Revision: 46965
2015-09-16 08:32:13 +00:00
..
bin Disable telnet in favor of passwordless SSH 2015-09-07 19:29:25 +00:00
etc base-files: add /etc/profile.d support 2015-09-16 08:32:13 +00:00
lib base-files: sysupgrade: quote source image name 2015-09-14 20:09:06 +00:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: add support for platform_pre_upgrade function 2015-04-09 14:33:03 +00:00