@dvl usually you don't (and shouldn't) touch /sbin/dhclient-script. That script is invoked by dhclient and it sources /etc/dhclient-enter-hooks and /etc/dhclient-exit-hooks - those are the files you want to use to add custom behavior and e.g. run your own scripts to which you can pass the variables set by dhclient (e.g. $new_ip_address).
e.g. I'm calling my ddns script from /etc/dhclient-exit-hooks as follows:
[ ."$reason" = .BOUND ] && /usr/home/sko/bunny_ddns.sh -n <recordID> -i $new_ip_address -k <APIkey> -z <zoneID>
that script then basically just mangles the input data into a curl POST request for the API.
I always wanted to look into using the "EXPIRE", "FAIL" and "TIMEOUT" reasons to switch over to a fallback uplink...