summaryrefslogtreecommitdiff
path: root/src/etc/profile
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/profile')
-rw-r--r--src/etc/profile10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/etc/profile b/src/etc/profile
new file mode 100644
index 0000000..93b503d
--- /dev/null
+++ b/src/etc/profile
@@ -0,0 +1,10 @@
+# If the /etc/profile.d directory is not sourced automatically
+# append this code to /etc/profile
+
+# Load profiles from /etc/profile.d
+if test -d /etc/profile.d/; then
+ for profile in /etc/profile.d/*.sh; do
+ test -r "$profile" && . "$profile"
+ done
+ unset profile
+fi