summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/smbsh
blob: 015db52d952f248b2c92124ca78a7b765b6bcd90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

LIBDIR=/home/tridge/samba/source/smbwrapper

# 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 
fi

LD_PRELOAD=$LIBDIR/smbwrapper.so
export LD_PRELOAD

export PWD
PS1='smbsh$ '
export PS1
bash