Salam kenal Pak Alvon,
Saya sudah lupa script yang mana yg saya post dulu. Ini saya lampirkan
PPP script yang baru yang terbagi dalam 2 file. namakan yang pertama
dialppp dan yang kedua ppp-dial. Kemudian di chmod +x semua tentunya.
Script ini lebih aman karena password tidak akan tampil apa bila
menjalankan ps -aux.
Script ini adalah untuk modem USR V.34 28.8kbps, jadi init string
silakan dirubah sesuai dgn kebutuhan.
Semoga berhasil.
Tolong di share dgn pengguna Linux lain.
PS:
Apa anda pengelola ISP indosat ?
--------- cut here --(dialppp)---------------
#!/bin/sh
#
case "$1" in
"") echo "Usage: dialppp phone-number"; exit 1 ;;
esac
# These are the parameters. Change as needed.
TELEPHONE=$1
LOGIN_ID=your_login_id
PASSWORD=your_password
# We don't use these if remote assigns local & remote IP
LOCAL_IP=
REMOTE_IP=
NETMASK=255.255.255.0
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE LOGIN_ID PASSWORD
#
# Make sure the path is correct for ppp-dial script.
DIALER=~/bin/ppp-dial
#
# Initiate the connection
#
# Make sure pppd is in /usr/sbin or change the path
# cua1 is COM2, COM1 use cua0
exec /usr/sbin/pppd debug lock modem crtscts /dev/cua1 115200 \
asyncmap 20A0000 escape FF kdebug 0 \
noipdefault netmask $NETMASK defaultroute connect $DIALER
--------- cut here ----(ppp-dial)------------
#!/bin/sh
#
# Make sure chat is in /usr/sbin, too, or change the path.
/usr/sbin/chat -v \
ABORT "NO CARRIER" \
ABORT BUSY \
"" ATZ \
OK "AT&FE1V1Q0X4B0&B1&H1&R2&N0&A3S11=55" \
OK "ATS10=255" \
OK ATDT$TELEPHONE \
CONNECT "" \
sername:--sername: $LOGIN_ID \
assword: \\q$PASSWORD \
indo-ts-1 2
--------- cut here --------------------------
--
Chairil K. Kartakusuma, M.Sc. ______ |\/\/\/\/|
PRINTIS Information Systems Consultant, / \ | |
UNIX & Multi-Platform Client/Server Integrator | | | |
Jakarta, INDONESIA | (O)(O) | (o)(o)
E-mail: chairilk@indo.net.id (primary) @ .---_) @ _)
chairil@ibm.net, chairil@sns.com | |\___| | '___|
| \__/ | /
--
STOP-LANGGANAN: 'unsubscribe' ke: linux-request@indovax.csc.ui.ac.id
START-LANGGANAN: 'subscribe' ke: linux-request@indovax.csc.ui.ac.id