On Sun, 2001-12-09 at 19:52, Bananaskin wrote:

> #!/bin/sh
> ifconfig | grep ppp0 >/dev/null 2>&1 && ping -c2 217.32.81.203 2>&1
> >/dev/null
> if test $? -eq 1
> then
> killall pppd
> sleep 1
> killall -9 pppd pppoa3

Seems excesive, if pppd goes down so *should* pppoa

> killall modem_run
> sleep 1
> killall -9 modem_run pppd pppoa

The bit of interest to me.

> umount /proc/bus/usb
> rmmod uhci
> rmmod usbcore
> sleep 3
> modprobe uhci
> sleep 3
> mount /proc/bus/usb

I assume this is because you have problems running modem_run twice
(otherwise it doesn't run "cleanly" the second time). What I would like
to do is just reset the device from within modem_run. Can't seem to get
it to work though.

> /usr/local/btinternet/modem_run -v 1 -m -f /usr/local/btinternet/mgmt.o
> ulimit -n 200
> ulimit -u 500
> pppd call adsl
> fi

Alex




Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe

        

Reply via email to