Okey doke, ==========peerip================ PEER_IP=`/sbin/ifconfig | grep P-t-P | cut -d ':' -f3 | cut -d ' ' -f1` export PEER_IP =============================== ==========reconnect=============== #! /bin/sh
peerip ifconfig | grep ppp0 >/dev/null 2>&1 && ping -c 2 $PEER_IP >/dev/null 2>&1 if test $? -eq 1 then killall pppd sleep 1 # pppoa -> ppoa2 killall -9 modem_run pppoa2 umount /proc/bus/usb # uchi -> usb-ohci rmmod usb-ohci rmmod usbcore sleep 3 modprobe usb-ohci sleep 3 # line from boot script. mount -t usbdevfs -o devmode=0664,devgid=43 /proc/bus/usbmount /proc/bus/usb modem_run -v 1 -m -f /usr/share/speedtouch/mgmt.o ulimit -n 200 ulimit -u 500 pppd call adsl fi ==================================== ----- Original Message ----- From: "Hugo Coolens" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 4:29 AM Subject: [speedtouch] Re: Fw: Re: Script > dear Martin, > > it seems that attachments are stripped in this mailing list. Could you please > copy and paste the script in the body of the message or just send it to > [EMAIL PROTECTED] > > thanks > hugo > > Martin West wrote: > > > Not sure if this came through ok, resending > > ----- Original Message ----- > > From: "Martin West" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, December 16, 2001 9:02 AM > > Subject: Re: [speedtouch] Re: Script > > > > > Attach are my reconnect and peerip scripts. > > > The mount line change may not be neccessary, the mount did not work > > > initially probably becuase of the uchi/usb-ohci problem. I did a grep on > > > /proc/bus/usb in etc and found the script that did the mount at boot time > > > and copied that line into reconnect. It took me about three iterations to > > > get it working. > > > regards Martin West > > > > > > ----- Original Message ----- > > > From: "Hugo Coolens" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Sunday, December 16, 2001 8:04 AM > > > Subject: [speedtouch] Re: Script > > > > > > > > > > > ----- Original Message ----- > > > > > From: "Martin West" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Wednesday, December 12, 2001 11:55 AM > > > > > Subject: [speedtouch] Re: Script > > > > > > > > > > > > > > > > > I now have this script working on Mandrake 8.1 download. I had to > > > tweak > > > > > > 1. uhci -> usb-ohci, > > > > > > 2. pppoa -> pppoa2 > > > > > > 3. remount ... I copied the line from the startup script. > > > > > > 4.and using the peer_ip mod. > > > > > > > > Could you please post your complete version of the script for Mandrake > > 8.1 > > > as > > > > point 3 and 4 are not completely clear to me > > > > > > > > thanks, > > > > Hugo> > > > > > > > > > > > > > > > Liste de diffusion modem ALCATEL SpeedTouch USB > > > > Pour se d�sinscrire : > > > mailto:[EMAIL PROTECTED]?subject=unsubscribe> > > > > -- Binary/unsupported file stripped by Listar -- > > -- Type: application/octet-stream > > -- File: reconnect.dat > > > > -- Binary/unsupported file stripped by Listar -- > > -- Type: application/octet-stream > > -- File: peerip.dat > > > > Liste de diffusion modem ALCATEL SpeedTouch USB > > Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe > > > > > > > > Liste de diffusion modem ALCATEL SpeedTouch USB > Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe > > > Liste de diffusion modem ALCATEL SpeedTouch USB Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
