mirror of
https://github.com/samba-team/samba.git
synced 2025-01-28 17:47:29 +03:00
e34e25d907
(This used to be commit c4e450817886b40474cebdfc50c0c16fb4646baf)
36 lines
622 B
Bash
Executable File
36 lines
622 B
Bash
Executable File
#!/bin/sh
|
|
|
|
LIBDIR=/home/tridge/samba/source/smbwrapper
|
|
|
|
if [ ! -f $LIBDIR/smbwrapper.so ]; then
|
|
echo You need to set LIBDIR in smbsh
|
|
exit
|
|
fi
|
|
|
|
# a simple launcher for the smbwrapper.so preloadde library
|
|
|
|
if [ x$SMBW_USER = x ]; then
|
|
echo username?
|
|
read user
|
|
SMBW_USER=$user
|
|
export SMBW_USER
|
|
fi
|
|
|
|
# this doesn't hide the password - we need a proper launch app for that
|
|
if [ x$SMBW_PASSWORD = x ]; then
|
|
echo password?
|
|
read pass
|
|
SMBW_PASSWORD=$pass
|
|
export SMBW_PASSWORD
|
|
fi
|
|
|
|
LD_PRELOAD=$LIBDIR/smbwrapper.so
|
|
export LD_PRELOAD
|
|
|
|
PWD=`pwd`
|
|
export PWD
|
|
PS1='smbsh$ '
|
|
export PS1
|
|
bash
|
|
echo done
|