summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/config-site/files/config.site.in')
-rw-r--r--sys-apps/config-site/files/config.site.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys-apps/config-site/files/config.site.in b/sys-apps/config-site/files/config.site.in
new file mode 100644
index 000000000000..1e732cf28aaa
--- /dev/null
+++ b/sys-apps/config-site/files/config.site.in
@@ -0,0 +1,10 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+for script in "@datarootdir@/config.site.d"/*.conf; do
+ test -f "${script}" || continue
+ test -r "${script}" || continue
+ echo "${0##*/}: loading site script ${script}"
+ . "${script}" || break
+done
+unset script