#!/sbin/runscript # # crond Start/Stop the adsl connection. # # chkconfig: 2345 11 89 # description: Starts and stops the speedtouch modem. # pidfile: /var/run/crond.pid # Source function library. #. /etc/init.d/functions RETVAL=0 # See how we were called. prog="pppd" start() { ebegin $"Starting $prog: " modprobe -k ppp_generic modprobe -k ppp_synctty modprobe -k n_hdlc (sleep 10;/usr/bin/modem_run -m -f /usr/local/lib/mgmt.o;sleep 5;pppd call adsl)& eend $? } stop() { ebegin $"Stopping $prog: " killall -w pppd killall -w modem_run rmmod n_hdlc rmmod ppp_synctty rmmod ppp_generic modprobe -r eend $? }