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

Re: ip-up & ip-down



> In the ip-up file, I need to execute:

>	/usr/local/bin/dynipclient -p

> In the ip-down file, I need to execute

>	/usr/local/bin/dynipclient -k

> When I add the lines, it doesn't work.

How do you know?  These scripts are run with stdout directed to /dev/null,
so you won't see any output.

In any case, the proper way to do this is to put this script in
/etc/ppp/ip-up.d, name it dynipclient, and make it executable:

#!/bin/bash
/usr/local/bin/dynipclient -p

And put this one in /etc/ppp/ip-down.d, name it dynipclient, and make it
executable:

#!/bin/bash
/usr/local/bin/dynipclient -k
-- 
John Hasler
john@dhh.gt.org (John Hasler)
Dancing Horse Hill
Elmwood, WI


Reply to: