Re: hooks ?
On Mon, Nov 27, 2000 at 04:35:36PM +0100, Van Buggenhaut wrote:
> On Mon, Nov 27, 2000 at 01:08:03PM +0100, Nabil Hathout wrote:
> > Bonjour,
> >
> > Je travaille sur un portable et j'aimerais que des services comme NFS
> > ou des démons comme fetchmail soit lancés à l'introduction de ma carte
> > pcmcia ou une fois que la connection ppp est établie.
> >
> > Je voudrais savoir s'il existe un moyen « standard » d'accrocher le
> > lancement de ces services/démons à ifconfig (quand ils dépendent du
> > réseau) ?
>
> Je ne connais pas de moyen standard de le faire, mais je pense que tu peux hacker /sbin/ifup et /sbin/ifdown en récupérant les sources puis les recompiler ...
>
STOOOOOOOP,
Je me réponds à moi-même :
cat /etc/ppp/ip-up
#!/bin/sh
#
# $Id: ip-up,v 1.2 1998/02/10 21:25:34 phil Exp $
#
# This script is run by the pppd after the link is established.
# It uses run-parts to run scripts in /etc/ppp/ip-up.d, so to add routes,
# set IP address, run the mailq etc. you should create script(s) there.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#
# Be aware that other packages may include /etc/ppp/ip-up.d scripts (named
# after that package), so choose local script names with that in mind.
#
Pas besoin de réécrire du code, donc.
>
> >
> > Cordialement,
> >
> > --Nabil Hathout
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-french-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> >
>
> --
> Eric.VanBuggenhaut@AdValvas.be
> http://www.eric.ath.cx
>
> Please don't send proprietary format documents, I can't (and don't want to) open them.
> Appreciated are open-source formats like .txt or .rtf. Dvi, ps or tex files are welcome.
>
>
> --
> To UNSUBSCRIBE, email to debian-french-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
--
Eric.VanBuggenhaut@AdValvas.be
http://www.eric.ath.cx
Please don't send proprietary format documents, I can't (and don't want to) open them.
Appreciated are open-source formats like .txt or .rtf. Dvi, ps or tex files are welcome.
Reply to:
- Follow-Ups:
- Re: hooks ?
- From: "François Boisson" <fboisson@worldnet.fr>
- References:
- hooks ?
- From: Nabil Hathout <Nabil.Hathout@univ-tlse2.fr>
- Re: hooks ?
- From: Van Buggenhaut <eric@eric.ath.cx>