[ LUGOS ] skript za priklop na SiOL

Branko F. Gračner Branko na edico.si
Pon Okt 4 18:42:59 CEST 1999


--- password file---

/etc/ppp/chap-secrets

# Username      Server      Password      IP addresses
"username"   "siol"   "password"   *
"siol"   "username"   "password"   *

--- options file ---

/etc/ppp/options

lock
defaultroute
idle 90                 #odklopi modem po 90 sekundah neaktivnosti
modem
/dev/ttyS2            #nadomesti s portom tvojega modema
115200
crtscts
debug
passive
asyncmap 0
name "username"
remotename "siol"

--- chatscript ---

/etc/ppp/siol.ppp.chatscript

TIMEOUT 10
ABORT ERROR
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
REPORT CONNECT
"" "ATz"
OK "ATM0X3DT088032320"
TIMEOUT 40
CONNECT

--- program, ki vse to zažene  ---

#!/bin/bash

if [ "$1" = "" ]; then
killall -9 pppd 2>/dev/null
rm -f /var/lock/LCK..* /var/run/ppp*.pid
rm -f /etc/ppp/report-chat
(/usr/sbin/pppd connect "/usr/sbin/chat -v -r /etc/ppp/report-chat -f
/etc/ppp/siol.ppp.chatscript") || exit 1
exit 0
fi


upam, da bo to dovolj ... meni deluje...

Brane





Dodatne informacije o seznamu Starilist