summaryrefslogtreecommitdiffstats
path: root/el7/modules.sh
diff options
context:
space:
mode:
Diffstat (limited to 'el7/modules.sh')
-rw-r--r--el7/modules.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/el7/modules.sh b/el7/modules.sh
new file mode 100644
index 0000000..48cc324
--- /dev/null
+++ b/el7/modules.sh
@@ -0,0 +1,7 @@
+shell=`/bin/basename \`/bin/ps -p $$ -ocomm=\``
+if [ -f /usr/share/Modules/init/$shell ]
+then
+ . /usr/share/Modules/init/$shell
+else
+ . /usr/share/Modules/init/sh
+fi