diff options
author | John Crispin <john@openwrt.org> | 2015-09-16 08:32:13 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-09-16 08:32:13 +0000 |
commit | ef2f50829d0ab156a1141a5c721da93216ee52a6 (patch) | |
tree | 2fe65d818929073cf2a1f4a8ba5ff44c10b7d9f5 /tools | |
parent | f461ffbaad00946d0a7e6809a98b58c65657fa30 (diff) | |
download | upstream-ef2f50829d0ab156a1141a5c721da93216ee52a6.tar.gz upstream-ef2f50829d0ab156a1141a5c721da93216ee52a6.tar.bz2 upstream-ef2f50829d0ab156a1141a5c721da93216ee52a6.zip |
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
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions