Gah! Don't do it as a reboot. You can nohup this, so that when the ssh connection is dropped, the script continues. Please don't bounce a unix server for something as trivial as a changing the IP address.
--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.