Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
run own script after dhcp renewal of ip address
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3943
Location: Hamburg

PostPosted: Wed Jun 06, 2007 3:25 pm    Post subject: run own script after dhcp renewal of ip address Reply with quote

I'd like to tweak the /etc/resolv.conf as soon as dhcpcd changed it after a renewal of the dhcp leased ip adress - and I don't know why :-(
Back to top
View user's profile Send private message
Stever
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 151
Location: North Carolina

PostPosted: Wed Jun 06, 2007 3:48 pm    Post subject: Reply with quote

I can't help you with WHY, but here is HOW:
Code:
       /etc/dhcpcd.sh
              script file, which dhcpcd will try to execute whenever  it  con-
              figures  or  brings  down  the  interface. The path to this exe-
              cutable script can be changed with -c   script  option.   dhcpcd
              passes 3 parameters to dhcpcd.sh script:

       dhcpcd.sh infofile [up | down | new]
              The  first  parameter  infofile is the path to a file containing
              all DHCP information we have. The second parameter  value  up  |
              down  | new mean the interface has been brought up with the same
              IP address as before ("up"), or with the new IP address ("new"),
              or the interface has been brought down ("down").
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum