Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149614386
D36505.1790588696.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
892 B
Referenced Files
None
Subscribers
None
D36505.1790588696.diff
View Options
diff --git a/bin/sh/profile b/bin/sh/profile
--- a/bin/sh/profile
+++ b/bin/sh/profile
@@ -12,3 +12,23 @@
# msgs -q
# Allow terminal messages
# mesg y
+
+# Load each file in /etc/profile.d/, then /usr/local/etc/profile, then
+# each file in /usr/local/etc/profile.d/.
+_loaded=${_loaded:-/etc/profile}
+export _loaded
+for _dir in /etc /usr/local/etc ; do
+ for _file in "${_dir}"/profile "${_dir}"/profile.d/* ; do
+ if [ -f "${_file}" ] ; then
+ case :${_loaded}: in
+ *:"${_file}":*)
+ ;;
+ *)
+ _loaded="${_loaded:+${_loaded}:}${_file}"
+ . "${_file}"
+ ;;
+ esac
+ fi
+ done
+done
+unset _loaded _dir _file
diff --git a/etc/mtree/BSD.root.dist b/etc/mtree/BSD.root.dist
--- a/etc/mtree/BSD.root.dist
+++ b/etc/mtree/BSD.root.dist
@@ -84,6 +84,8 @@
..
ppp
..
+ profile.d
+ ..
rc.conf.d
..
rc.d
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 28, 9:44 AM (7 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29968767
Default Alt Text
D36505.1790588696.diff (892 B)
Attached To
Mode
D36505: sh: read more profile files.
Attached
Detach File
Event Timeline
Log In to Comment