[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] diald



On Sunday 25 February 2001  2:04 pm, you wrote:
> just to further my earley post does any one have any experience with diald
> or has a workin script as i am STUCK
>   your Russ
>
I run diald as follows:

in /etc/rc.d/init.d/ I have my startup script:

*****************
#!/bin/sh
#
# diald   The on demand TCP/IP networking program
#
#
# chkconfig: 2345 57 5
# description: Diald is the smart demand-dial PPP/SLIP networking daemon. \
#      It selectively activates the SLIP/PPP link to the Internet when \
#      traffic is detected that is considered important.
#
 
# Source function library.
. /etc/rc.d/init.d/functions
 
# Source networking configuration.
. /etc/sysconfig/network
 
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
 
#[ -f /usr/sbin/diald ] || exit 0
 
#[ -f /etc/diald.conf ] || exit 0
 
 
# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting diald: "
        /usr/sbin/diald -f /etc/diald/pppd-diald-LibertySurf.conf
        # daemon /usr/sbin/diald
        echo
        touch /var/lock/subsys/diald
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down diald: "
        killproc /usr/sbin/diald
        echo
        rm -f /var/lock/subsys/diald
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  status)
        status diald
        ;;
  *)
        echo "Usage: diald {start|stop|restart|status}"
        exit 1
esac
 
exit 0
************************

The config file: /etc/diald/pppd-diald-LibertySurf.conf reads as follows:

************************
mode ppp
include /usr/lib/diald/dynamic.filter
speed 115200
fifo /etc/diald/pppd-diald-LibertySurf.fifo
modem
crtscts
lock
defaultroute
mru 1500
device /dev/modem
connect /etc/diald/pppd-args-chat.LibertySurf.sh
remote 127.0.0.10
local 127.0.0.11
dynamic
buffer-packets on
pidfile pppd-diald-LibertySurf.pid
pppd-options debug noauth asyncmap 0 ipparam "linuxconf_dialout LibertySurf" 
remotename lnx-LibertySurf name pdmeiring
tcpport 10001
accounting-log /var/log/diald.log
redial-backoff-start 3
dial-fail-limit 6
restrict 07:00:00 18:05:00 1-5 * *
down
************************

The file: /etc/diald/pppd-args-chat.LibertySurf.sh reads:

************************
#!/bin/sh
exec /usr/sbin/chat  -f  /etc/diald/pppd-args-chat.LibertySurf
************************

The file /etc/diald/pppd-args-chat.LibertySurf reads:

************************
ABORT 'NO CARRIER' ABORT BUSY '' ATZ OK ATDT1436172 CONNECT
************************

Thats it, realy:

You do need, of course, PPPD to work with the appropriate things in your 
secrets files (/etc/ppp/pap-secrets and chap-secrets)


Hope this helps...


Pieter

---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.