From db61efdb34a2965ffa98136c70092519bcd38935 Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Tue, 19 May 2009 15:01:35 +0000 Subject: * 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 --- rules/rootfs.make | 1 + 1 file changed, 1 insertion(+) (limited to 'rules/rootfs.make') diff --git a/rules/rootfs.make b/rules/rootfs.make index c40c70b5e..1184bb8ca 100644 --- a/rules/rootfs.make +++ b/rules/rootfs.make @@ -188,6 +188,7 @@ ifdef PTXCONF_ROOTFS_NSSWITCH_CONF endif ifdef PTXCONF_ROOTFS_PROFILE @$(call install_alternative, rootfs, 0, 0, 0644, /etc/profile, n) + @$(call install_alternative, rootfs, 0, 0, 0644, /etc/profile.environment, n) endif ifdef PTXCONF_ROOTFS_PROTOCOLS @$(call install_alternative, rootfs, 0, 0, 0644, /etc/protocols, n) -- cgit v1.2.3