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

[herve.thibaud@free.fr: Re: SAGEM 800 USB, reconnexion auto.]



----- Forwarded message from hervé thibaud <herve.thibaud@free.fr> -----
> 
> On Thu, 2002-12-19 at 09:39, Frédéric Bothamy wrote:
> > * hervé thibaud <herve.thibaud@free.fr> [2002-12-19 09:30] :
> > > Pour mieux essayer de situer le pb
> > > voilà un extrait du syslog lors d'une coupure d'ADSL
> > > "check.sh" est un contrôle sur l'existence du processus "pppd" et
> > > provoque un reboot en cas d'absence.Le contrôle est exécuté toutes les
> > > 10 mn
> > 
> > [...]
> > 
> > > Dec 18 18:18:18 beltegeuse /etc/hotplug/net.agent: invoke ifdown ppp0
> > > Dec 18 18:18:24 beltegeuse modprobe: modprobe: Can't locate module ppp0
> > 
> > Indépendamment des autres erreurs, il y a quoi au juste dans
> > /etc/hotplug/net.agent ? Mon idée, c'est qu'il fait peut-être quelque
> > chose comme :
> > 
> > INTERFACE=ppp0
> > 
> > ifdown $INTERFACE
> > modprobe -r $INTERFACE
> > 
> > Dans ce cas, l'erreur serait benigne.
> > 
> > Fred
> Voilà le net.agent
> 
> -- #!/bin/bash
> #
> # Network hotplug policy agent for Linux 2.4 kernels
> #
> # Kernel NET hotplug params include:
> #	
> #	ACTION=%s [register or unregister]
> #	INTERFACE=%s
> #
> # HISTORY:
> #
> # 25-Feb-2001	Special case ppp and similar (redhat)
> # 23-Jan-2001	Log invocation of "ifup" if debugging
> # 04-Jan-2001	Initial version of "new" hotplug agent.
> #
> # $Id: net.agent,v 1.9 2001/09/07 15:57:39 dbrownell Exp $
> #
> 
> cd /etc/hotplug
> . hotplug.functions
> # DEBUG=yes export DEBUG
> 
> if [ "$INTERFACE" = "" ]; then
>     mesg Bad NET invocation: \$INTERFACE is not set
>     exit 1
> fi
> 
> case $ACTION in
> register)
> 
>     case $INTERFACE in
> 	# interfaces that are registered after being "up" (?)
> 	ppp*|ippp*|isdn*|plip*|lo*|irda*)
> 	    debug_mesg assuming $INTERFACE is already up
> 	    exit 0
> 	    ;;
> 	# interfaces that are registered then brought up
> 	*)
> 	    # NOTE:  network configuration relies on administered state,
> 	    # we can't do much here without distro-specific knowledge
> 	    # such as whether/how to invoke DHCP, set up bridging, etc.
> 
> 	    # RedHat and similar
> 	    if [ -x /sbin/ifup ]; then
> 		debug_mesg invoke ifup $INTERFACE
> 		exec /sbin/ifup $INTERFACE
> 	    else
> 		mesg "how do I bring interfaces up on this distro?"
> 	    fi
> 	    ;;
>     esac
>     mesg $1 $ACTION event not handled
>     ;;
> 
> unregister)
>     # Assume that we want to run ifdown no matter what,  
>     # because it is not going to remove the data from the 
>     # ifstate database otherwise.
>     if [ -x /sbin/ifdown ]; then
>        debug_mesg invoke ifdown $INTERFACE
>         exec /sbin/ifdown $INTERFACE
>     else
>        # mesg "how do I bring interfaces up on this distro?"
>        mesg "E: /sbin/ifdown not found. You need to install ifupdown
> package"
>     fi
>     mesg $1 $ACTION event not handled
>     ;;
> 
> *)
>     debug_mesg NET $ACTION event not supported
>     exit 1 ;;
> 
> esac
> 
> 
> hervé thibaud <herve.thibaud@free.fr>
> 
> 
> 
> ----- End forwarded message -----

[Suivi sur la liste]

Bon, ben, je me suis bien trompé. Dans ce cas, cela peut peut-être
venir de ton fichier de configuration des modules. Qu'est-ce que te
donne ceci :

$ grep ppp /etc/modules.conf

Fred



Reply to: