aboutsummaryrefslogtreecommitdiffstats
path: root/package/devel
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-03-01 08:15:04 +0000
committerJohn Crispin <blogic@openwrt.org>2016-03-01 08:15:04 +0000
commitfd52d9e16d5663620121d6e6edbc40e1edc60e62 (patch)
treebb786841b938fd3ed0a1870abdde59b2feb4a2be /package/devel
parentd9c6c3310821dd7261fca7b8aa67ce4746b1fb43 (diff)
downloadupstream-fd52d9e16d5663620121d6e6edbc40e1edc60e62.tar.gz
upstream-fd52d9e16d5663620121d6e6edbc40e1edc60e62.tar.bz2
upstream-fd52d9e16d5663620121d6e6edbc40e1edc60e62.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> Backport of r46965 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48862 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/devel')
0 files changed, 0 insertions, 0 deletions