next up previous contents
Next: config.php4 Up: Quellcode Previous: cron_job.php4   Contents


pppconn.sh


#!/bin/sh -x
# Script to connect to remote computer
# (C) 2002, Jens Bierkandt
# Change the local Telfonnumber (MSN) below
MSN=1697
# Nothing needs to be edited below
BASENAME=${0##*/}
NUMBER=$1
PROTOCOL=$2
USER=$3
PASSWORD=$4
if [ -z "$PASSWORD" ]; then
echo "Usage: $0 <NUMBER> <PROTOCOL> <USER> <PASSWORD>"
exit 1
fi
exec /home/schtorch/diplom/capipppd \
--controller 1 \
--number $NUMBER \
--msn $MSN \
--protocol $PROTOCOL \
-- \
lock \
noauth \
-chap \
ipcp-accept-local \
ipcp-accept-remote \
debug \
idle 30 \
plugin userpass.so \
replacedefaultroute \
user $USER \
password $PASSWORD



Jens Bierkandt