aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS├ębastien Fabbro <bicatali@gentoo.org>2013-06-26 10:23:18 -0700
committerS├ębastien Fabbro <bicatali@gentoo.org>2013-06-26 10:23:18 -0700
commit0ed65facdbd4db0e275f314b56d66de1bc00283d (patch)
tree560d048b36b9877db9dbafa9e0630ebe068f2ad8 /sys-cluster/modules/files/modules.sh.in
parentMerge branch 'master' of git://git.overlays.gentoo.org/proj/sci; github.com:g... (diff)
downloadsci-0ed65facdbd4db0e275f314b56d66de1bc00283d.tar.gz
sci-0ed65facdbd4db0e275f314b56d66de1bc00283d.tar.bz2
sci-0ed65facdbd4db0e275f314b56d66de1bc00283d.zip
sys-cluster/modules: Prefix keyworded. Added tests. FHS fixes. Add bunch of fedora patches
Package-Manager: portage-2.2.01.22013-prefix
Diffstat (limited to 'sys-cluster/modules/files/modules.sh.in')
-rw-r--r--sys-cluster/modules/files/modules.sh.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys-cluster/modules/files/modules.sh.in b/sys-cluster/modules/files/modules.sh.in
new file mode 100644
index 000000000..6ed502e87
--- /dev/null
+++ b/sys-cluster/modules/files/modules.sh.in
@@ -0,0 +1,7 @@
+shell=$(basename $(ps -p $$ -ocomm=))
+if [ -f @EPREFIX@/usr/share/Modules/init/${shell} ]
+then
+ . @EPREFIX@/usr/share/Modules/init/${shell}
+else
+ . @PREFIX@/usr/share/Modules/init/sh
+fi