summaryrefslogtreecommitdiff
path: root/etc/profile
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-07-20 20:18:30 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-07-20 20:18:30 +0400
commit73e31b79de25298a519671ef8b6c2ab68af9c87e (patch)
treefafbc2e405247cd1c9b1106d6346a5767071e14f /etc/profile
parentac76d8699e3979353cd82136323e1e0afee4bba2 (diff)
directory layout changed
Diffstat (limited to 'etc/profile')
-rw-r--r--etc/profile10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/profile b/etc/profile
new file mode 100644
index 0000000..93b503d
--- /dev/null
+++ b/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