Re: ip-{up,down} scripts
On 30 May 1999 03:17:42 +0200, you wrote:
>>> "RL" == Remi Lefebvre <remi@debian.org> writes:
>RL> I noticed that the ip-{up,down} scripts are runned on _every_ ppp
>RL> connections which isn't, in mosts cases, the desired behaviour.
>
>Hmm, I rather disagree on this. The scripts are specifically there to
>be run on every ppp connect/disconnect.
I agree with Martin. It is quite easy to have the scripts stop
executing for certain interfaces.
For example my /etc/ppp/ip.d/exim-queuerunner:
|#!/bin/bash
|
|[ "$PPP_IFACE" = "ippp0" ] || exit 0
|
|case "$PPP_OPERATION" in
| up)
| /etc/init.d/exim queue-start
| ;;
| down)
| /etc/init.d/exim queue-stop
| ;;
|esac
This clearly only executes if the interface going up or down is ippp0.
Greetings
Marc
--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber | " Questions are the | Mailadresse im Header
Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Reply to: