Re: ppp and ip-up.d, ip-down.d
On Tue, 8 Dec 1998 21:42:59 +0100, you wrote:
>On Tue, Dec 08, 1998 at 01:10:06PM +0000, Marc Haber wrote:
>> As you see, ip-up and ip-down export $PPP_OPERATION which is either
>> "up" or "down" and proceed to call run-parts /etc/ppp/ip.d.
>
>What about passing "up" and "down" as first argument. This is more likely the
>init-scripts of SysV-Init...
I did not do that because I didn't want to change the well-known
semantics of the ip-op scripts that are the same throughout all Linux
distributions. It would too easily break scripts copied over from over
systems.
>> This way, matching procedures being done at the beginning and/or end
>> of a PPP connection are beautifully integrated into a single script
>> which is IMHO easier to maintain and less error-prone.
>
>Hmm, what kind of scripts do you have in your /etc/ppp-Directory? My scripts
>are too short to be error-prone ;-)
Well, if you have dynamic IP, you gotta have a script that sets the
routing and a second script that adapts the firewall rules to the
dynamic IP number.
Also, if you trigger some network operations (such as mail and/or news
transfer, time synchronisation or similiar), you can get a couple of
scripts at least.
>> I would love to see this integrated into a future release of the ppp
>> package since I really believe in that concept *grin*
>
>I am working on a new (read: updated) ppp-package which fixes some bugs and a
>few wishlist item. I will send it to Phil (I do not like the idea of
>non-maintainer-uploads). I am hoping he has the time to upload this package.
Well, as things develop, I think that we won't have that ip.d approach
like I suggested but rather a symlink approach to be able to control
the run order. That way, we'd only need the distribution scripts to
set $RUN_ORDER. The rest could be done independently.
I'd probably work on a file-rc approach for the PPP stuff.
>The only problem I can see is that you can't change the order the scripts are
>run based on up-/down-condition. Perhaps we should switch to an init-like
>style with links in ip-up.d and ip-down.d?
That will be one of two options IMO.
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: