netifd: update dhcp.script to handle dynamic routing