diff options
Diffstat (limited to 'remote/includes')
| -rw-r--r-- | remote/includes/paths.inc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/remote/includes/paths.inc b/remote/includes/paths.inc index 8ab016df..ca692adb 100644 --- a/remote/includes/paths.inc +++ b/remote/includes/paths.inc @@ -11,3 +11,22 @@ for CANDIDATE in $(strings "$(ldd "$(which login)" | grep libpam.so | head -n 1 done [ -z "$SYS_PAM_MODULES_PATH" ] && perror "Failed to find pam_unix.so on this system." + +# +# Figure out if we have split usr +if [ -L "/bin" -a -L "/lib" ]; then + declare -rg USR_SPLIT="no" +else + declare -rg USR_SPLIT="yes" +fi +pdebug "/bin and /lib are split from /usr/bin and /usr/lib (they are not symlinks): $USR_SPLIT" + +SYS_LIB_PATHS="" +for DIR in /lib /lib32 /lib64 /usr/lib /usr/lib32 /usr/lib64; do + [ -d "$DIR" -a ! -L "$DIR" ] && SYS_LIB_PATHS+=" $DIR" +done +declare -rg SYS_LIB_PATHS=$SYS_LIB_PATHS +pdebug "System lib paths: $SYS_LIB_PATHS" + +true + |
