If you want to run the libpsr.so code without running it through Portslave
(for example if you use a program other than the main Portslave program to
connect) then you could use a shell script such as the following to launch pppd
with libpsr.so loaded:

#!/bin/bash

export PORTSLAVELOGNAME="$1"
export PORTSLAVE_SESSION=`date +%s``printf "%X" $RANDOM`
export PORTSLAVE_START_TIME=`date +%s`
exec /usr/sbin/pppd plugin /usr/lib/libpsr.so



Here's how to do it with PPTP:

/etc/pptp.conf:
option /etc/ppp/pptp.options
localip 192.168.236.133
# Be warned. pppd option in /etc/pptp.conf is not standard !
# use patch from ASPLinux pptpd-1.1.2 RPM or later.
pppd /usr/sbin/pptp-portslave

/etc/portslave/pslave.conf:
# configure it as usual, but with lines defined for pseudo-tty devices
s{1000-1063}.tty   pts/{0-63}

/usr/sbin/pptp-portslave:
#!/bin/bash
export PORTSLAVELOGNAME="AutoPPP"
export PORTSLAVE_SESSION=`date +%s``printf "%X" $RANDOM`
export PORTSLAVE_START_TIME=`date +%s`
export PORTSLAVE_DO_ACCT="1"
exec /usr/sbin/pppd $* plugin /usr/lib/libpsr.so
