diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2009-05-19 15:01:35 +0000 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2009-05-19 15:01:35 +0000 |
commit | db61efdb34a2965ffa98136c70092519bcd38935 (patch) | |
tree | 244962ade8fa4203aec0bf89985d792b38d50de5 /rules/rootfs.in | |
parent | 711664909801a56b350b39de74e133abf3e7927e (diff) | |
download | ptxdist-db61efdb34a2965ffa98136c70092519bcd38935.tar.gz ptxdist-db61efdb34a2965ffa98136c70092519bcd38935.tar.xz |
* rootfs: refactor /etc/profile
Busybox' ash parses first /etc/profile, then the file stored in ENV
which is also used for subshells. So, refactor /etc/profile to a
specific and generic part and let ENV point to the latter. This
prevents /etc/profile being sourced twice.
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10542 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/rootfs.in')
-rw-r--r-- | rules/rootfs.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rules/rootfs.in b/rules/rootfs.in index eec0a85ad..7f6747d71 100644 --- a/rules/rootfs.in +++ b/rules/rootfs.in @@ -296,8 +296,9 @@ config ROOTFS_PROFILE bool prompt "install /etc/profile" help - If enabled, it installs the "./projectroot/etc/profile" file if - present, else a generic one from the ptxdist directory. + If enabled, it installs "./projectroot/etc/profile" (for init-shells) + and "./projectroot/etc/profile.environment" (for sub-shells) files if + present, else generic ones from the ptxdist directory. config ROOTFS_PROTOCOLS bool |