#!/bin/sh -e

if [ "x$old_ip_address" = x ] || [ "x$old_ip_address" != "x$new_ip_address" ] \
   || [ "x$reason" = xBOUND ] || [ "x$reason" = xREBOOT ]; then
    ifconfig $interface inet $new_ip_address $new_subnet_arg $new_broadcast_arg
    for router in $new_routers; do
      route add default gw $router
    done
fi
