Posted: Fri May 23, 2008 2:26 am Post subject: Script when dhcp address changes?
I know I saw this once before, but I failed in my search attempts to find it. If I want to run some script anytime dhcp changes my address, how do I do it?
Depends on the dhcp client
For dhcpcd-4.0.0-beta5 you can create /etc/dhcpcd.hook which is included in the script dhcpcd runs every time dhcpcd gets (or loses) an address. See dhcpcd-run-hooks man page for details.
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