diff options
| author | Manuel Schneider | 2014-07-23 15:56:46 +0200 |
|---|---|---|
| committer | Manuel Schneider | 2014-07-23 15:56:46 +0200 |
| commit | b2ca6da5c5fad2aa6bb08557e5599f67e82633d4 (patch) | |
| tree | 06d6c9839a7dfcb6378e2a276de9dae1e5a89de0 /remote/includes/paths.inc | |
| parent | [pvs2] Config for pvs2 room templates containing room -100 (diff) | |
| parent | [drm] one more nvidia: 10de-0dd8: nvidia Quadro 2000 (diff) | |
| download | tm-scripts-b2ca6da5c5fad2aa6bb08557e5599f67e82633d4.tar.gz tm-scripts-b2ca6da5c5fad2aa6bb08557e5599f67e82633d4.tar.xz tm-scripts-b2ca6da5c5fad2aa6bb08557e5599f67e82633d4.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/includes/paths.inc')
| -rw-r--r-- | remote/includes/paths.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/remote/includes/paths.inc b/remote/includes/paths.inc new file mode 100644 index 00000000..8ab016df --- /dev/null +++ b/remote/includes/paths.inc @@ -0,0 +1,13 @@ +# +# This include tries to determine system paths needed by mltk-modules +# The idea here is to have a central place to determine paths required +# by different modules instead of each module determining them on its own. +# + + +# Location of PAM-modules +for CANDIDATE in $(strings "$(ldd "$(which login)" | grep libpam.so | head -n 1 | awk '{print $3}')" | grep /lib); do + [ -f "$CANDIDATE/pam_unix.so" ] && declare -rg SYS_PAM_MODULES_PATH="$CANDIDATE" && break +done + +[ -z "$SYS_PAM_MODULES_PATH" ] && perror "Failed to find pam_unix.so on this system." |
