diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-05 12:17:01 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-05 12:17:01 +0000 |
commit | a5405f1ab069a3123a819311a87ca84f2c5f0fea (patch) | |
tree | 1d7b679cbefad581bd34526364b3c25d077176bc /source/smbwrapper/smbsh.in | |
parent | 7c4ad07b5989feee6ab84eb7ff2fe2e76e1475a6 (diff) | |
download | samba-a5405f1ab069a3123a819311a87ca84f2c5f0fea.tar.gz samba-a5405f1ab069a3123a819311a87ca84f2c5f0fea.tar.xz samba-a5405f1ab069a3123a819311a87ca84f2c5f0fea.zip |
got smbwrapper working on IRIX 6.4. Things got a bit tricky,
especially as the headers get the syscall numbers wrong!
Diffstat (limited to 'source/smbwrapper/smbsh.in')
-rw-r--r-- | source/smbwrapper/smbsh.in | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/source/smbwrapper/smbsh.in b/source/smbwrapper/smbsh.in index f5a56148428..7a26933f391 100644 --- a/source/smbwrapper/smbsh.in +++ b/source/smbwrapper/smbsh.in @@ -29,7 +29,21 @@ export PWD PS1='smbsh$ ' export PS1 -LD_PRELOAD=$SMBW_LIBDIR/smbwrapper.so -export LD_PRELOAD + +host_os=@HOST_OS@ + +case "$host_os" in + *irix*) + _RLDN32_LIST=$SMBW_LIBDIR/smbwrapper.so:DEFAULT + _RLD_LIST=$SMBW_LIBDIR/smbwrapper.32.so:DEFAULT + export _RLDN32_LIST + export _RLD_LIST + ;; + *) + LD_PRELOAD=$SMBW_LIBDIR/smbwrapper.so + export LD_PRELOAD + ;; +esac + exec ${SMBW_SHELL-${SHELL-/bin/sh}} ${1+"$@"} |