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

Re: ip-up & ip-down



Frederic Breitwieser writes:
> In the ip-up and up-down scripts, I had to switch directories in order
> for the program to see its config file in the same directory - it doesn't
> use any path or environment variables !

This documented in the pppd man page.  It is done for security reasons.
The standard Debian ip-up and ip-down scripts set PATH and export it.

Why are you rewriting ip-up and ip-down?  The standard Debian ip-up and
ip-down scripts use run-parts to run whatever you put in ip-up.d and
ip-down.d.  Thus you would create a script named dynip in ip-down.d, make
it executable and put this in it:

#!/bin/bash
dynipclient -k
...
...

and put a similar script in ip-up.d.  

By rewriting ip-up and ip-down you are going to foul up packages that put
scripts in these directories and expect them to get run at appropriate
times.

-- 
John Hasler                This posting is in the public domain.
john@dhh.gt.org		   Do with it what you will.
Dancing Horse Hill         Make money from it if you can; I don't mind.
Elmwood, Wisconsin         Do not send email advertisements to this address.


Reply to: