#!/bin/sh # $Id$ # TO: /sbin/dhclient-script . /etc/profile case "${reason}" in PREINIT|PREINIT6) ifconfig -i ${interface} --down ifconfig -i ${interface} --up exit 0 ;; BOUND|RENEW|REBIND|REBOOT) ifconfig -i ${interface} -m ${new_subnet_mask} -A ${new_ip_address} -b ${new_broadcast_address} route add default gw ${new_routers} echo "# Auto-generated by dhclient-script" > /etc/resolv.conf for i in $new_domain_name_servers; do echo "nameserver $i" >> /etc/resolv.conf done exit 0 ;; esac