gotip() { echo $$ >/var/run/dhclient-exit-hooks.pid while [ ! -f /var/run/bootdone ] do sleep 5 done if [ x$new_ip_address != x ] ; then env >/var/run/dhclient.env.log new_oe_gateway=192.139.46.65 export new_oe_gateway if [ -n "$new_oe_gateway" ] then export new_oe_key sh /etc/racoon/wavesec_setup.sh $new_ip_address $new_oe_gateway $new_routers fi # XXX setup other VPNs here sh /etc/racoon/load-spd.sh fi # and update forward zone entry if you want sh /etc/namedb/doupdate.sh $new_ip_address } case $reason in BOUND) gotip &;; REBOOT) gotip &;; esac